Curt Brune
b9ea0ce26c
hwmon: (adt7470) Fix incorrect return code check
...
commit 93d783bcca upstream.
In adt7470_write_word_data(), which writes two bytes using
i2c_smbus_write_byte_data(), the return codes are incorrectly AND-ed
together when they should be OR-ed together.
The return code of i2c_smbus_write_byte_data() is zero for success.
The upshot is only the first byte was ever written to the hardware.
The 2nd byte was never written out.
I noticed that trying to set the fan speed limits was not working
correctly on my system. Setting the fan speed limits is the only
code that uses adt7470_write_word_data(). After making the change
the limit settings work and the alarms work also.
Signed-off-by: Curt Brune <curt@cumulusnetworks.com >
Signed-off-by: Guenter Roeck <linux@roeck-us.net >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2013-08-14 22:57:06 -07:00
..
2013-03-20 13:04:59 -07:00
2012-03-18 18:27:12 -07:00
2013-05-24 11:14:22 -07:00
2012-04-09 12:17:37 -07:00
2012-10-02 10:30:06 -07:00
2012-03-18 18:26:58 -07:00
2012-03-18 18:26:50 -07:00
2012-03-18 18:26:51 -07:00
2013-06-13 09:45:01 -07:00
2012-03-18 18:26:50 -07:00
2012-03-18 18:27:19 -07:00
2012-03-18 18:27:32 -07:00
2012-04-01 10:24:35 -07:00
2012-03-18 18:27:20 -07:00
2012-04-18 11:15:50 -07:00
2012-03-18 18:27:12 -07:00
2012-10-02 10:30:06 -07:00
2012-03-18 18:26:50 -07:00
2012-03-18 18:27:02 -07:00
2013-08-14 22:57:06 -07:00
2012-03-18 18:26:50 -07:00
2012-03-18 18:27:14 -07:00
2012-07-16 09:03:50 -07:00
2012-03-18 18:27:21 -07:00
2012-03-18 18:26:54 -07:00
2012-09-14 10:00:34 -07:00
2012-03-18 18:27:03 -07:00
2012-07-16 09:04:22 -07:00
2012-03-18 18:27:21 -07:00
2012-03-18 18:26:50 -07:00
2012-03-18 18:26:51 -07:00
2012-03-18 18:26:50 -07:00
2012-03-18 18:27:14 -07:00
2012-03-18 18:27:33 -07:00
2011-11-26 09:48:20 -08:00
2012-03-18 18:26:48 -07:00
2012-03-18 18:27:15 -07:00
2012-04-01 10:24:34 -07:00
2012-12-17 10:37:44 -08:00
2012-03-27 20:06:02 +02:00
2012-03-18 18:27:16 -07:00
2012-03-18 18:27:22 -07:00
2012-03-18 18:27:23 -07:00
2012-01-05 08:19:34 -08:00
2012-03-18 18:27:44 -07:00
2012-03-18 18:26:52 -07:00
2012-03-18 18:26:30 -07:00
2012-03-18 18:26:35 -07:00
2012-07-19 08:58:55 -07:00
2012-03-18 18:27:53 -07:00
2011-12-12 08:31:21 -08:00
2012-03-18 18:26:42 -07:00
2012-04-01 10:25:56 -07:00
2012-04-01 10:25:56 -07:00
2013-03-20 13:04:59 -07:00
2012-03-23 10:02:19 +01:00
2012-03-18 18:27:40 -07:00
2013-01-17 08:50:52 -08:00
2012-03-18 18:26:50 -07:00
2012-01-05 08:19:35 -08:00
2012-03-18 18:27:24 -07:00
2012-03-18 18:27:24 -07:00
2012-03-18 18:27:43 -07:00
2012-03-18 18:26:50 -07:00
2012-03-18 18:27:25 -07:00
2012-03-18 18:27:42 -07:00
2012-03-23 10:02:18 +01:00
2012-03-18 18:27:05 -07:00
2012-03-18 18:27:06 -07:00
2012-03-18 18:26:50 -07:00
2012-03-18 18:26:50 -07:00
2012-03-18 18:27:16 -07:00
2012-03-18 18:27:02 -07:00
2012-03-18 18:27:01 -07:00
2012-03-18 18:27:46 -07:00
2012-03-23 10:02:20 +01:00
2012-03-18 18:27:17 -07:00
2012-03-18 18:27:26 -07:00
2012-03-18 18:27:35 -07:00
2012-04-01 10:24:08 -07:00
2012-03-18 18:26:50 -07:00
2012-03-18 18:26:50 -07:00
2012-03-18 18:27:48 -07:00
2012-03-28 13:56:35 -07:00
2012-03-23 10:02:20 +01:00
2011-11-26 09:48:20 -08:00
2012-03-18 18:27:27 -07:00
2012-03-18 18:27:35 -07:00
2012-03-18 18:27:07 -07:00
2011-11-26 09:48:20 -08:00
2012-03-20 06:42:05 -07:00
2012-03-20 06:42:05 -07:00
2012-03-20 06:42:05 -07:00
2012-03-20 06:42:05 -07:00
2013-03-20 13:05:00 -07:00
2012-03-18 18:26:50 -07:00
2012-03-18 18:27:07 -07:00
2012-03-18 18:27:47 -07:00
2012-04-09 12:17:36 -07:00
2012-04-09 12:17:38 -07:00
2012-03-18 18:27:08 -07:00
2012-03-18 18:27:10 -07:00
2012-03-18 18:26:50 -07:00
2012-03-21 10:37:25 -07:00
2012-03-18 18:26:50 -07:00
2012-10-02 10:30:05 -07:00
2012-03-18 18:27:10 -07:00
2012-03-18 18:27:28 -07:00
2012-01-26 16:48:12 -08:00
2012-03-18 18:27:29 -07:00
2012-03-18 18:26:49 -07:00
2012-03-18 18:27:38 -07:00
2012-03-18 18:27:39 -07:00
2012-11-17 13:16:12 -08:00
2012-03-18 18:27:32 -07:00
2012-03-18 18:27:37 -07:00
2012-03-18 18:27:11 -07:00
2012-03-18 18:27:30 -07:00
2012-03-27 20:06:02 +02:00
2012-03-23 10:02:18 +01:00
2012-03-18 18:26:55 -07:00
2012-03-18 18:27:00 -07:00