hwmon: (adt7411) set bit 3 in CFG1 register
authorMichael Walle <michael@walle.cc>
Tue, 19 Jul 2016 14:43:26 +0000 (16:43 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 7 Oct 2016 13:23:42 +0000 (15:23 +0200)
commit1229b0840b6a846d326630a6aaa5deaf04d10120
treec4fa68093659f4f4622e0def49761c65ebdb7e27
parent8e8a07f900d03c1230142749c0f01b6ef2cae8f7
hwmon: (adt7411) set bit 3 in CFG1 register

commit b53893aae441a034bf4dbbad42fe218561d7d81f upstream.

According to the datasheet you should only write 1 to this bit. If it is
not set, at least AIN3 will return bad values on newer silicon revisions.

Fixes: d84ca5b345c2 ("hwmon: Add driver for ADT7411 voltage and temperature sensor")
Signed-off-by: Michael Walle <michael@walle.cc>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hwmon/adt7411.c