Axel Lin 2565fb05d1 hwmon: (gpio-fan) Prevent overflow problem when writing large limits
On platforms with sizeof(int) < sizeof(unsigned long), writing a rpm value
larger than MAXINT will result in unpredictable limit values written to the
chip. Avoid auto-conversion from unsigned long to int to fix the problem.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Cc: stable@vger.kernel.org
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
2014-08-04 07:27:50 -07:00
..
2013-10-18 09:12:02 -07:00
2013-10-18 09:12:02 -07:00
2014-01-29 20:40:08 +01:00
2014-01-29 20:40:08 +01:00
2014-08-04 07:01:35 -07:00
2013-08-27 08:28:01 -07:00
2013-09-11 13:01:32 -07:00
2014-04-04 18:01:35 +02:00
2014-08-04 07:01:36 -07:00
2014-08-04 07:01:34 -07:00
2013-03-18 21:19:49 +01:00
2014-08-04 07:01:35 -07:00
2014-08-04 07:01:35 -07:00
2014-08-04 07:01:35 -07:00
2014-08-04 07:01:38 -07:00
2014-01-29 20:40:08 +01:00
2013-08-11 22:10:39 -07:00
2014-01-29 20:40:08 +01:00
2012-11-28 11:49:40 -08:00
2012-11-28 11:49:40 -08:00
2014-08-04 07:01:35 -07:00
2014-01-29 20:40:08 +01:00
2014-08-04 07:01:36 -07:00
2014-01-29 20:40:08 +01:00