1
0
Fork 0

Merge branch 'fixes-togreg' into togreg

hifive-unleashed-5.1
Jonathan Cameron 2018-08-01 18:56:17 +01:00
commit 2b4ec22d36
2 changed files with 2 additions and 2 deletions

View File

@ -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) {

View File

@ -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,