misc: pmic8058-xoadc: Use ideal calibration for Headset
Input voltage range for Headset detect is in the region
close to the acceptable voltage range for this ADC.
Applying overall calibration on this channel offsets the
input voltage on this channel. Therefore use ideal
calibration for the HDSET MPP channel.
Change-Id: I9d4e926f9522ac2715accac47b1031d37ae38df7
Signed-off-by: Siddartha Mohanadoss <smohanad@codeaurora.org>
diff --git a/drivers/misc/pmic8058-xoadc.c b/drivers/misc/pmic8058-xoadc.c
index f21668a..b63800c 100644
--- a/drivers/misc/pmic8058-xoadc.c
+++ b/drivers/misc/pmic8058-xoadc.c
@@ -223,7 +223,7 @@
data_arb_rsv = 0x20;
slot->chan_properties.gain_numerator = 1;
slot->chan_properties.gain_denominator = 1;
- slot->chan_properties.adc_graph = &adc_pmic->adc_graph[0];
+ slot->chan_properties.adc_graph = &adc_pmic->adc_graph[1];
break;
case CHAN_PATH_TYPE7: