RE: [PATCH 1/3] staging iio adt7410: sysfs store function must return length

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Acked-by: Sonic Zhang <sonic.zhang@xxxxxxxxxx>

>-----Original Message-----
>From: Sascha Hauer [mailto:s.hauer@xxxxxxxxxxxxxx]
>Sent: Tuesday, July 03, 2012 5:21 PM
>To: linux-iio@xxxxxxxxxxxxxxx
>Cc: Jonathan Cameron; Zhang, Sonic; Sascha Hauer
>Subject: [PATCH 1/3] 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@xxxxxxxxxxxxxx>
>---
> drivers/staging/iio/adc/adt7410.c |    2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
>diff --git a/drivers/staging/iio/adc/adt7410.c b/drivers/staging/iio/adc/adt7410.c
>index d7d9ad9..fa54a40 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,
>--
>1.7.10
>


--
To unsubscribe from this list: send the line "unsubscribe linux-iio" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Input]     [Linux Kernel]     [Linux SCSI]     [X.org]

  Powered by Linux