hwmon: (lm75) added error handling
authorFrans Meulenbroeks <fransmeulenbroeks@gmail.com>
Tue, 3 Jan 2012 11:02:40 +0000 (12:02 +0100)
committerGuenter Roeck <guenter.roeck@ericsson.com>
Thu, 5 Jan 2012 16:19:33 +0000 (08:19 -0800)
commit1f962f363b762887d8f9057598b6acacf9e80234
tree7b8154fc56cdd6cfab6e0125fdff4451dea48047
parentaac9fe9b4697868009e752562e743cc7984809bc
hwmon: (lm75) added error handling

Add error handling so if lm75_update_device fails
an error is returned when reading the value through sysfs.
This is closely modeled after the way this is handled in ltc4261.

Signed-off-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
drivers/hwmon/lm75.c