]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (lm75) Make the writing to sysfs more robust
authorShubhrajyoti D <shubhrajyoti@ti.com>
Thu, 28 Oct 2010 18:31:44 +0000 (20:31 +0200)
committerJean Delvare <khali@endymion.delvare>
Thu, 28 Oct 2010 18:31:44 +0000 (20:31 +0200)
commit66f7f9790c647f63f27b9f1981c1b986ba160045
treefe43f5a2ab475769ede0c639dd5823a8c6937bc4
parentc2ddadde2e6642607729f5c2d135610b20c17d57
hwmon: (lm75) Make the writing to sysfs more robust

Currently we get the checkpatch warning
consider using strict_strtol in preference to simple_strtol.
Also we should not allow any partially numeric values.

Signed-off-by: Shubhrajyoti D <shubhrajyoti@ti.com>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
drivers/hwmon/lm75.c