projects
/
platform
/
kernel
/
linux-exynos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f58c44e
)
hwmon: (ltc4261) set data->valid to 0 if error
author
Frans Meulenbroeks
<fransmeulenbroeks@gmail.com>
Mon, 2 Jan 2012 11:03:20 +0000
(12:03 +0100)
committer
Guenter Roeck
<guenter.roeck@ericsson.com>
Thu, 5 Jan 2012 16:19:32 +0000
(08:19 -0800)
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
patch
|
blob
|
history
diff --git
a/drivers/hwmon/ltc4261.c
b/drivers/hwmon/ltc4261.c
index 4b50601027d3f4787249651c8d58da5126603f12..ce5235560f0164f05bd83b3a0be88810dd46f040 100644
(file)
--- a/
drivers/hwmon/ltc4261.c
+++ b/
drivers/hwmon/ltc4261.c
@@
-85,6
+85,7
@@
static struct ltc4261_data *ltc4261_update_device(struct device *dev)
"Failed to read ADC value: error %d\n",
val);
ret = ERR_PTR(val);
+ data->valid = 0;
goto abort;
}
data->regs[i] = val;