--- hwmon-fschmd-new-driver-v2.patch 2007-10-09 14:52:27.000000000 +0200 +++ hwmon-fschmd-new-driver-v3.patch 2007-10-09 14:59:13.000000000 +0200 @@ -2,9 +2,8 @@ and fscpos drivers and adds support for the FSC Scylla, Heracles and Heimdall chips. -This version of the patch has had all issues found during the review by Jean -Delvare addressed: -http://lists.lm-sensors.org/pipermail/lm-sensors/2007-October/021396.html +This 3rd version of the patch has a few issues found during review of the fixed +2nd version, thanks to Jean Delvare! Signed-off-by: Hans de Goede diff -up linux-2.6.22.x86_64/drivers/hwmon/Kconfig.fschmd linux-2.6.22.x86_64/drivers/hwmon/Kconfig @@ -457,7 +456,7 @@ +{ + struct fschmd_data *data = fschmd_update_device(dev); + -+ if (data->global_control & 0x01) ++ if (data->global_control & FSCHMD_CONTROL_ALERT_LED_MASK) + return sprintf(buf, "1\n"); + else + return sprintf(buf, "0\n"); @@ -479,7 +478,7 @@ + else + reg &= ~FSCHMD_CONTROL_ALERT_LED_MASK; + -+ i2c_smbus_write_byte_data(&data->client, FSCHMD_REG_CONTROL, v); ++ i2c_smbus_write_byte_data(&data->client, FSCHMD_REG_CONTROL, reg); + + data->global_control = reg; +