From: Hans de Goede Date: Wed, 7 Jan 2009 15:37:31 +0000 (+0100) Subject: hwmon: (f71882fg) Fix fan_to/from_reg prototypes X-Git-Tag: v2.6.29-rc1~190^2~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2f650631b3710622666367474b5475ff81ba486e;p=pandora-kernel.git hwmon: (f71882fg) Fix fan_to/from_reg prototypes The RPM after conversion from / before conversion to a register value can be much more than 65535 (up to 1500000), so putting this into an u16 can cause overflows. This changes the functions to use an int to store / get RPM instead. Signed-off-by: Hans de Goede Signed-off-by: Jean Delvare --- Reading git-diff-tree failed