mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-07 16:01:34 +00:00
bugfix by Axel Thimm <Axel.Thimm@ATrpms.net>:
> 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
This commit is contained in:
1 parent
411dc06a0b
commit
3512e8eb8e
1 file changed
+3
-1
+3
-1
@@ -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))
|
||||
|
||||
Reference in new issue
Block a user