summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRenato Lui Geh <renatogeh@gmail.com>2019-03-15 23:12:53 -0300
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2019-04-04 20:20:02 +0100
commitae9f86feb4294864cf7274acae6561ec4d95a7d0 (patch)
tree84511329178c5627ee5ef43275272110b5252e7d
parent9085daa4abcc3a1c19ae4eb00e609842ef28275a (diff)
downloadlinux-ae9f86feb4294864cf7274acae6561ec4d95a7d0.tar.bz2
staging: iio: ad7780: add missing switch default case
This patch simply adds a missing switch default case in read_raw. Signed-off-by: Renato Lui Geh <renatogeh@gmail.com> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
-rw-r--r--drivers/staging/iio/adc/ad7780.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/staging/iio/adc/ad7780.c b/drivers/staging/iio/adc/ad7780.c
index a7e004228e57..0968a69e537e 100644
--- a/drivers/staging/iio/adc/ad7780.c
+++ b/drivers/staging/iio/adc/ad7780.c
@@ -118,6 +118,8 @@ static int ad7780_read_raw(struct iio_dev *indio_dev,
case IIO_CHAN_INFO_OFFSET:
*val = -(1 << (chan->scan_type.realbits - 1));
return IIO_VAL_INT;
+ default:
+ break;
}
return -EINVAL;