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>
This commit is contained in:
parent
46b24311cc
commit
3a427d184f
1 changed files with 1 additions and 1 deletions
|
@ -257,7 +257,7 @@ static ssize_t adt7410_store_resolution(struct device *dev,
|
||||||
|
|
||||||
chip->config = config;
|
chip->config = config;
|
||||||
|
|
||||||
return ret;
|
return len;
|
||||||
}
|
}
|
||||||
|
|
||||||
static IIO_DEVICE_ATTR(resolution, S_IRUGO | S_IWUSR,
|
static IIO_DEVICE_ATTR(resolution, S_IRUGO | S_IWUSR,
|
||||||
|
|
Reference in a new issue