hwmon: (ltc4261) set data->valid to 0 if error
authorFrans Meulenbroeks <fransmeulenbroeks@gmail.com>
Mon, 2 Jan 2012 11:03:20 +0000 (12:03 +0100)
committerGuenter Roeck <guenter.roeck@ericsson.com>
Thu, 5 Jan 2012 16:19:32 +0000 (08:19 -0800)
commitaac9fe9b4697868009e752562e743cc7984809bc
treeaab0f3d249389d031e82614d4c443e7551852030
parentf58c44e698a8362d2ab2d1c966ca80b748ff9ff9
hwmon: (ltc4261) set data->valid to 0 if error

If there is an error it is better to set data->valid to 0
so the next call to ltc4261_update_device will always be
executed.

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