Searched hist:"05 a9bd46e49a9cbb09a0c61c901642a9911bf56e" (Results 1 – 1 of 1) sorted by relevance
/linux/drivers/hwmon/ |
H A D | adt7470.c | diff 05a9bd46e49a9cbb09a0c61c901642a9911bf56e Wed Nov 12 22:26:57 CET 2008 Darrick J. Wong <djwong@us.ibm.com> adt7470: check input range when sysfs files are written
Implement correct range checking for adt7470 to prevent userland from writing impossible values into the chip, and cap out-of-range values per standard hwmon conventions.
Implement correct rounding of input values per standard hwmon conventions.
Signed-off-by: Darrick J. Wong <djwong@us.ibm.com> Cc: Jean Delvare <khali@linux-fr.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
|