Skip to content

Commit

Permalink
staging: iio: ad7780: add missing switch default case
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Renato Lui Geh authored and Jonathan Cameron committed Apr 4, 2019
1 parent 9085daa commit ae9f86f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/staging/iio/adc/ad7780.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ae9f86f

Please sign in to comment.