From: Sascha Hauer Date: Tue, 3 Jul 2012 09:21:26 +0000 (+0200) Subject: staging iio adt7410: sysfs store function must return length X-Git-Tag: v3.6-rc1~100^2~298^2~17 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3a427d184f22e0ebfbed1eb82114ece8fb58bd95;p=platform%2Fkernel%2Flinux-3.10.git staging iio adt7410: sysfs store function must return length Otherwise a write to the resolution entry never returns. Signed-off-by: Sascha Hauer Acked-by: Sonic Zhang Signed-off-by: Jonathan Cameron --- 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,