aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/iio/frequency
diff options
context:
space:
mode:
authorJonathan Cameron <Jonathan.Cameron@huawei.com>2018-08-01 18:56:17 +0100
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2018-08-01 18:56:17 +0100
commit2b4ec22d36d46d03d01d1ec2436080d982284f36 (patch)
treee143c4f38e4ddc275bd29373bdd9869f659a24fd /drivers/iio/frequency
parentiio: adc: xilinx: Move request_irq before enabling interrupts (diff)
parentiio: light: si1133 fix test for val being not zero or not one. (diff)
downloadlinux-dev-2b4ec22d36d46d03d01d1ec2436080d982284f36.tar.xz
linux-dev-2b4ec22d36d46d03d01d1ec2436080d982284f36.zip
Merge branch 'fixes-togreg' into togreg
Diffstat (limited to 'drivers/iio/frequency')
-rw-r--r--drivers/iio/frequency/ad9523.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/frequency/ad9523.c b/drivers/iio/frequency/ad9523.c
index 38a8f73bd8d9..f4a508107f0d 100644
--- a/drivers/iio/frequency/ad9523.c
+++ b/drivers/iio/frequency/ad9523.c
@@ -522,7 +522,7 @@ static ssize_t ad9523_store(struct device *dev,
return ret;
if (!state)
- return 0;
+ return len;
mutex_lock(&st->lock);
switch ((u32)this_attr->address) {