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:
parent
e414b36291
commit
a32eccc4ac
1 changed files with 1 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue