Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a458354d authored by Shilpa Suresh's avatar Shilpa Suresh
Browse files

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: default avatarShilpa Suresh <sbsure@codeaurora.org>
parent 6aaa5e31
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -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 */