iio: ad9523: Fix return value for ad952x_store()
[linux-2.6-block.git] / drivers / iio / frequency / ad9523.c
index 37504739c27797630d692eb74a773a6887d6c64c..059b2fda8cbd8056e602db498a76c198b5ef78bf 100644 (file)
@@ -518,7 +518,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) {