Curt Brune
93d783bcca
hwmon: (adt7470) Fix incorrect return code check
...
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>
Cc: stable@vger.kernel.org
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
2013-08-08 12:43:07 -07:00
..
2013-04-07 21:16:41 -07:00
2013-04-16 18:27:52 -07:00
2013-06-21 10:05:03 -07:00
2013-05-13 08:07:13 -07:00
2013-07-14 16:24:25 -07:00
2013-04-16 18:27:52 -07:00
2013-01-26 00:37:24 +01:00
2013-04-07 21:16:42 -07:00
2013-01-25 21:03:54 -08:00
2012-09-23 21:08:29 -07:00
2012-11-28 11:50:34 -08:00
2013-06-27 10:29:02 -07:00
2012-07-21 21:48:38 -07:00
2013-04-07 21:16:40 -07:00
2013-04-07 21:16:40 -07:00
2013-01-25 21:03:54 -08:00
2013-04-07 21:16:40 -07:00
2012-09-23 21:08:30 -07:00
2013-01-25 21:03:54 -08:00
2013-04-07 21:16:40 -07:00
2013-04-07 21:16:38 -07:00
2013-04-07 21:16:38 -07:00
2013-04-07 21:16:41 -07:00
2013-04-07 21:16:38 -07:00
2013-04-07 21:16:40 -07:00
2013-01-25 21:03:54 -08:00
2013-08-08 12:43:07 -07:00
2013-01-25 21:03:54 -08:00
2013-01-25 21:03:54 -08:00
2013-04-07 21:16:38 -07:00
2013-04-07 21:16:40 -07:00
2013-04-07 21:16:40 -07:00
2013-01-26 00:37:24 +01:00
2012-07-21 21:48:39 -07:00
2013-07-14 19:36:57 -04:00
2013-04-07 21:16:40 -07:00
2013-04-07 21:16:40 -07:00
2013-04-07 21:16:40 -07:00
2012-09-23 21:08:31 -07:00
2013-06-28 06:43:55 -07:00
2013-01-25 21:03:54 -08:00
2012-10-10 15:25:56 +02:00
2013-01-25 21:03:54 -08:00
2013-04-07 21:16:38 -07:00
2013-01-25 21:03:54 -08:00
2013-01-25 21:03:54 -08:00
2013-04-07 21:16:40 -07:00
2013-04-07 21:16:40 -07:00
2013-01-25 21:03:54 -08:00
2013-06-27 10:31:42 -07:00
2013-04-07 21:16:40 -07:00
2013-01-25 21:03:54 -08:00
2013-04-07 21:16:42 -07:00
2012-11-28 11:50:34 -08:00
2012-12-19 22:17:02 +01:00
2012-12-19 22:16:59 +01:00
2013-06-21 10:05:13 -07:00
2013-04-07 21:16:40 -07:00
2013-04-07 21:16:40 -07:00
2013-06-27 10:29:03 -07:00
2013-06-27 10:31:42 -07:00
2013-02-06 09:57:59 -08:00
2013-04-07 21:16:40 -07:00
2013-02-06 09:58:07 -08:00
2012-11-28 11:50:34 -08:00
2013-04-07 21:16:40 -07:00
2012-11-28 11:50:34 -08:00
2013-06-27 10:31:42 -07:00
2013-03-14 06:55:21 -07:00
2013-07-08 14:18:24 +02:00
2012-11-28 11:50:34 -08:00
2013-02-06 09:57:58 -08:00
2013-05-04 14:49:36 +02:00
2013-03-18 21:19:49 +01:00
2013-01-25 21:03:54 -08:00
2013-04-07 21:16:40 -07:00
2013-04-07 21:16:40 -07:00
2012-07-21 21:48:38 -07:00
2013-04-07 21:16:40 -07:00
2012-07-21 21:48:40 -07:00
2013-07-08 14:18:24 +02:00
2012-10-10 15:25:56 +02:00
2013-04-07 21:16:40 -07:00
2013-04-07 21:16:42 -07:00
2012-09-23 21:08:31 -07:00
2013-01-25 21:03:54 -08:00
2013-04-07 21:16:40 -07:00
2013-04-07 21:16:40 -07:00
2013-04-07 21:16:40 -07:00
2013-04-07 21:16:40 -07:00
2013-06-27 10:31:42 -07:00
2012-11-28 11:50:34 -08:00
2012-11-28 11:50:34 -08:00
2012-10-10 15:25:56 +02:00
2013-01-25 21:03:54 -08:00
2013-01-25 21:03:54 -08:00
2013-01-25 21:03:54 -08:00
2013-01-25 21:03:54 -08:00
2013-08-03 07:04:50 -07:00
2013-01-25 21:03:54 -08:00
2013-04-07 21:16:37 -07:00
2012-09-23 21:08:36 -07:00
2013-06-27 10:31:43 -07:00
2013-06-21 10:05:19 -07:00
2013-04-07 21:16:40 -07:00
2013-04-07 21:16:40 -07:00
2012-07-21 21:48:41 -07:00
2013-04-07 21:16:38 -07:00
2013-04-07 21:16:40 -07:00
2012-05-30 07:55:38 +02:00
2012-11-28 11:49:40 -08:00
2012-11-28 11:49:40 -08:00
2013-03-03 21:45:48 -08:00
2012-11-28 11:50:34 -08:00
2013-04-07 21:16:40 -07:00
2012-10-10 15:25:56 +02:00
2012-11-28 11:50:34 -08:00
2013-01-25 21:03:54 -08:00
2013-01-25 21:03:54 -08:00
2013-04-07 21:16:40 -07:00
2013-04-07 21:16:40 -07:00
2013-05-19 08:19:29 -07:00
2013-04-07 21:16:40 -07:00
2012-12-16 18:21:33 -08:00
2012-11-28 11:50:34 -08:00
2013-01-09 21:47:22 -08:00
2013-04-07 21:16:40 -07:00
2013-07-14 19:36:57 -04:00
2013-04-07 21:16:40 -07:00
2013-04-07 21:16:40 -07:00
2012-07-21 21:48:43 -07:00
2013-01-25 21:03:54 -08:00
2013-06-21 10:05:24 -07:00
2013-01-25 21:03:54 -08:00
2013-04-07 21:16:40 -07:00
2013-04-07 21:16:40 -07:00
2013-04-07 21:16:40 -07:00
2013-04-07 21:16:40 -07:00
2013-04-07 21:16:40 -07:00
2012-11-28 11:50:34 -08:00
2012-11-28 11:50:34 -08:00