From: Mikko Koivunen Date: Thu, 18 May 2017 12:12:53 +0000 (+0300) Subject: iio: light: rpr0521 whitespace fixes X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=624c389e10a912769f2587f1ce3374f28159f1eb;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git iio: light: rpr0521 whitespace fixes Just whitespace change, no functional changes. Signed-off-by: Mikko Koivunen Acked-by: Daniel Baluta Signed-off-by: Jonathan Cameron --- 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; }