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>
This commit is contained in:
Renato Lui Geh 2019-03-15 23:12:53 -03:00 committed by Jonathan Cameron
parent 9085daa4ab
commit ae9f86feb4
1 changed files with 2 additions and 0 deletions

View File

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