Skip to content

Commit

Permalink
staging iio adt7410: sysfs store function must return length
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Sascha Hauer authored and Jonathan Cameron committed Jul 8, 2012
1 parent 46b2431 commit 3a427d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/iio/adc/adt7410.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 3a427d1

Please sign in to comment.