dt-bindings: iio: Add scale function for QM215 batt therm

Add scale function macro for selecting correct scale function for
batt therm ADC channel on QM215, as the channel is mapped to the
default voltage scaling function otherwise.
Also correct the indexing for other scaling macros to match the
header file.

Change-Id: I6f72d5386dff61e834e01221ad3df2cd3d3bc1f8
Signed-off-by: Shilpa Suresh <sbsure@codeaurora.org>
This commit is contained in:
Shilpa Suresh 2021-03-02 12:41:11 +05:30
parent 6aaa5e3131
commit a458354dde

View File

@ -320,7 +320,8 @@
#define ADC7_VBAT_2S_MID 0x96
/* VADC scale function index */
#define ADC_SCALE_HW_CALIB_THERM_100K_PU_PM7 0x10
#define ADC_SCALE_HW_CALIB_PMIC_THERM_PM7 0x11
#define ADC_SCALE_HW_CALIB_THERM_100K_PU_PM7 0x11
#define ADC_SCALE_HW_CALIB_PMIC_THERM_PM7 0x12
#define ADC_SCALE_BATT_THERM_QRD_215 0x13
#endif /* _DT_BINDINGS_QCOM_SPMI_VADC_H */