iio: qcom-tadc: fix reading die reset threshold

When reading the die reset threshold an error is returned due to a
missing switch case. Add it.

Change-Id: I079efe745fd64d37ba284dca7c912b1613b20af3
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
This commit is contained in:
Nicholas Troast 2017-03-09 06:55:23 -08:00 committed by Abhijeet Dharmapurikar
parent e414b36291
commit a32eccc4ac

View file

@ -689,6 +689,7 @@ static int tadc_read_raw(struct iio_dev *indio_dev,
case TADC_DIE_TEMP:
case TADC_DIE_TEMP_THR1:
case TADC_DIE_TEMP_THR2:
case TADC_DIE_TEMP_THR3:
*val = chan_data->scale;
return IIO_VAL_INT;
case TADC_BATT_I: