staging iio adt7410: sysfs store function must return length
authorSascha Hauer <[email protected]>
Tue, 3 Jul 2012 09:21:26 +0000 (11:21 +0200)
committerJonathan Cameron <[email protected]>
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 <[email protected]>
Acked-by: Sonic Zhang <[email protected]>
Signed-off-by: Jonathan Cameron <[email protected]>
drivers/staging/iio/adc/adt7410.c

index a2defe64d10befdf7d50f10218848358e83928c4..9025161dfe0e361b5d74050479d66140bf15c8f0 100644 (file)
@@ -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,