projects
/
profile
/
ivi
/
kernel-x86-ivi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
46b2431
)
staging iio adt7410: sysfs store function must return length
author
Sascha Hauer
<s.hauer@pengutronix.de>
Tue, 3 Jul 2012 09:21:26 +0000
(11:21 +0200)
committer
Jonathan Cameron
<jic23@kernel.org>
Sun, 8 Jul 2012 19:02:25 +0000
(20:02 +0100)
Otherwise a write to the resolution entry never returns.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Acked-by: Sonic Zhang <sonic.zhang@analog.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/staging/iio/adc/adt7410.c
patch
|
blob
|
history
diff --git
a/drivers/staging/iio/adc/adt7410.c
b/drivers/staging/iio/adc/adt7410.c
index
a2defe6
..
9025161
100644
(file)
--- a/
drivers/staging/iio/adc/adt7410.c
+++ b/
drivers/staging/iio/adc/adt7410.c
@@
-257,7
+257,7
@@
static ssize_t adt7410_store_resolution(struct device *dev,
chip->config = config;
- return
ret
;
+ return
len
;
}
static IIO_DEVICE_ATTR(resolution, S_IRUGO | S_IWUSR,