Commit 58fe0809 authored by Jean Delvare's avatar Jean Delvare Committed by Mark M. Hoffman

hwmon/via686a: Temperature interrupt configuration fix

Fix the writing of the temperature interrupt configuration.
The old code was working only by accident.
Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
parent 1550cb6d
...@@ -740,9 +740,10 @@ static void via686a_init_client(struct i2c_client *client) ...@@ -740,9 +740,10 @@ static void via686a_init_client(struct i2c_client *client)
via686a_write_value(client, VIA686A_REG_CONFIG, (reg|0x01)&0x7F); via686a_write_value(client, VIA686A_REG_CONFIG, (reg|0x01)&0x7F);
/* Configure temp interrupt mode for continuous-interrupt operation */ /* Configure temp interrupt mode for continuous-interrupt operation */
reg = via686a_read_value(client, VIA686A_REG_TEMP_MODE);
via686a_write_value(client, VIA686A_REG_TEMP_MODE, via686a_write_value(client, VIA686A_REG_TEMP_MODE,
via686a_read_value(client, VIA686A_REG_TEMP_MODE) & (reg & ~VIA686A_TEMP_MODE_MASK)
!(VIA686A_TEMP_MODE_MASK | VIA686A_TEMP_MODE_CONTINUOUS)); | VIA686A_TEMP_MODE_CONTINUOUS);
} }
static struct via686a_data *via686a_update_device(struct device *dev) static struct via686a_data *via686a_update_device(struct device *dev)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment