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)
commite3cd9528af4d1fd404eefe16e52ae421f99a7817
treefe43f5a2ab475769ede0c639dd5823a8c6937bc4
parentc4f99a2b8fb4c564865f0037a2b7be690d4409f3
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