hwmon: msm_adc: Calibrate HK/XOADC
Calibration for HK/XOADC is done once at init by msm_adc before the first ADC reading is processed. Calibration performed for every ADC read is expensive and not recommended. Remove support to request calibration by ADC clients. Add stubs for pmic8058 xoadc functions to fix featurization Change-Id: I7f0e165bddaa49c5daf33df5ed77428ccc1434c5 Signed-off-by: Vijayakumar Muthuvel Manickam <vmuthuve@codeaurora.org>
This commit is contained in:
@@ -343,7 +343,6 @@ int32_t adc_channel_open(uint32_t channel, void **h);
|
||||
int32_t adc_channel_close(void *h);
|
||||
int32_t adc_channel_request_conv(void *h, struct completion *conv_complete_evt);
|
||||
int32_t adc_channel_read_result(void *h, struct adc_chan_result *chan_result);
|
||||
int32_t adc_calib_request(void *h, struct completion *calib_complete_evt);
|
||||
#else
|
||||
int32_t adc_channel_open(uint32_t channel, void **h)
|
||||
{
|
||||
@@ -365,11 +364,6 @@ int32_t adc_channel_read_result(void *h, struct adc_chan_result *chan_result)
|
||||
pr_err("%s.not supported.\n", __func__);
|
||||
return -ENODEV;
|
||||
}
|
||||
int32_t adc_calib_request(void *h, struct completion *calib_complete_evt)
|
||||
{
|
||||
pr_err("%s.not supported.\n", __func__);
|
||||
return -ENODEV;
|
||||
}
|
||||
#endif /* CONFIG_SENSORS_MSM_ADC */
|
||||
#endif
|
||||
#endif /* __MSM_ADC_H */
|
||||
|
||||
Reference in New Issue
Block a user