diff options
author | Darrick J. Wong <djwong@us.ibm.com> | 2008-11-12 22:26:58 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-11-13 02:17:17 +0100 |
commit | 862343c4ea2ece307f25db1812637cff142d3263 (patch) | |
tree | 2a15fc50b2ff1b9542c6af34b2a864c678080344 /drivers/spi | |
parent | adt7470: check input range when sysfs files are written (diff) | |
download | linux-862343c4ea2ece307f25db1812637cff142d3263.tar.xz linux-862343c4ea2ece307f25db1812637cff142d3263.zip |
adt7473: check inputs from sysfs writes
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>
Diffstat (limited to 'drivers/spi')
0 files changed, 0 insertions, 0 deletions