summaryrefslogtreecommitdiffstats
path: root/drivers/iio/light/rpr0521.c
diff options
context:
space:
mode:
authorMikko Koivunen <mikko.koivunen@fi.rohmeurope.com>2017-05-18 15:12:53 +0300
committerJonathan Cameron <jic23@kernel.org>2017-05-21 15:06:13 +0100
commit624c389e10a912769f2587f1ce3374f28159f1eb (patch)
treeb14058f1be15a7012a4a7d1c1708eb2ffc15f63e /drivers/iio/light/rpr0521.c
parentae5916501b8d45b0585171f4e4ada7c64493813b (diff)
downloadlinux-624c389e10a912769f2587f1ce3374f28159f1eb.tar.gz
linux-624c389e10a912769f2587f1ce3374f28159f1eb.tar.bz2
linux-624c389e10a912769f2587f1ce3374f28159f1eb.zip
iio: light: rpr0521 whitespace fixes
Just whitespace change, no functional changes. Signed-off-by: Mikko Koivunen <mikko.koivunen@fi.rohmeurope.com> Acked-by: Daniel Baluta <daniel.baluta@nxp.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/light/rpr0521.c')
-rw-r--r--drivers/iio/light/rpr0521.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/iio/light/rpr0521.c b/drivers/iio/light/rpr0521.c
index 38095d79a874..52c559d9e09b 100644
--- a/drivers/iio/light/rpr0521.c
+++ b/drivers/iio/light/rpr0521.c
@@ -371,6 +371,7 @@ static int rpr0521_read_raw(struct iio_dev *indio_dev,
*val = le16_to_cpu(raw_data);
return IIO_VAL_INT;
+
case IIO_CHAN_INFO_SCALE:
mutex_lock(&data->lock);
ret = rpr0521_get_gain(data, chan->address, val, val2);
@@ -379,6 +380,7 @@ static int rpr0521_read_raw(struct iio_dev *indio_dev,
return ret;
return IIO_VAL_INT_PLUS_MICRO;
+
default:
return -EINVAL;
}
@@ -398,6 +400,7 @@ static int rpr0521_write_raw(struct iio_dev *indio_dev,
mutex_unlock(&data->lock);
return ret;
+
default:
return -EINVAL;
}