diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2012-07-03 09:21:26 (GMT) |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2012-07-08 19:02:25 (GMT) |
commit | 3a427d184f22e0ebfbed1eb82114ece8fb58bd95 (patch) | |
tree | ff2b52af28006e68c2766e7a4047ab5bbfdc92d2 | |
parent | 46b24311ccc8b37da9e6e006c6158229a5354268 (diff) | |
download | linux-fsl-qoriq-3a427d184f22e0ebfbed1eb82114ece8fb58bd95.tar.xz |
staging iio adt7410: sysfs store function must return length
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>
-rw-r--r-- | drivers/staging/iio/adc/adt7410.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/iio/adc/adt7410.c b/drivers/staging/iio/adc/adt7410.c index a2defe6..9025161 100644 --- 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, |