From 3512e8eb8ebec7b5b0e521a23a803594292a9f65 Mon Sep 17 00:00:00 2001 From: "Mark M. Hoffman" Date: Tue, 26 Oct 2004 01:17:22 +0000 Subject: [PATCH] bugfix by Axel Thimm : > Building (the real) 2.8.8 on RH7.3 uncovered a small C99-ism, patch > against CVS is attached. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2746 7894878c-1315-0410-8ee3-d5d059ff63e0 --- kernel/chips/lm93.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kernel/chips/lm93.c b/kernel/chips/lm93.c index d16239ae..70787680 100644 --- a/kernel/chips/lm93.c +++ b/kernel/chips/lm93.c @@ -1707,10 +1707,12 @@ static void lm93_fan_smart_tach(struct i2c_client *client, int operation, if (operation == SENSORS_PROC_REAL_INFO) *nrels_mag = 0; else if (operation == SENSORS_PROC_REAL_READ) { + int mapping; + lm93_update_client(client); /* extract the relevant mapping */ - int mapping = (data->sf_tach_to_pwm >> (nr * 2)) & 0x03; + mapping = (data->sf_tach_to_pwm >> (nr * 2)) & 0x03; /* if there's a mapping and it's enabled */ if (mapping && ((data->sfc2 >> nr) & 0x01))