Loading drivers/iio/frequency/ad9523.c +1 −1 Original line number Diff line number Diff line Loading @@ -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) { Loading drivers/iio/light/si1133.c +1 −1 Original line number Diff line number Diff line Loading @@ -838,7 +838,7 @@ static int si1133_write_raw(struct iio_dev *iio_dev, switch (chan->type) { case IIO_INTENSITY: case IIO_UVINDEX: if (val != 0 || val != 1) if (val != 0 && val != 1) return -EINVAL; return si1133_update_adcsens(data, Loading Loading
drivers/iio/frequency/ad9523.c +1 −1 Original line number Diff line number Diff line Loading @@ -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) { Loading
drivers/iio/light/si1133.c +1 −1 Original line number Diff line number Diff line Loading @@ -838,7 +838,7 @@ static int si1133_write_raw(struct iio_dev *iio_dev, switch (chan->type) { case IIO_INTENSITY: case IIO_UVINDEX: if (val != 0 || val != 1) if (val != 0 && val != 1) return -EINVAL; return si1133_update_adcsens(data, Loading