aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/power/ab8500_btemp.c
diff options
context:
space:
mode:
authorMarcus Cooper <marcus.xm.cooper@stericsson.com>2012-11-28 08:42:59 -0500
committerLee Jones <lee.jones@linaro.org>2013-03-06 23:35:56 -0500
commit7a2cf9bacf6c5f3119a9100f103dc46a1f648fbb (patch)
treee076b9d60fa602be977f34f6ff5e03b7870c9738 /drivers/power/ab8500_btemp.c
parent0f80ba63187439ef4ad3810ccd97633af9522be8 (diff)
ab8500-bm: Trivially fix up some incorrect and out-of-date comments
Some of the comments in the ab8500 drivers reflect the behaviour of the original device. As this driver now supports newer devices then these comments are now redundant. Also some IRQ comments are incorrect. Signed-off-by: Marcus Cooper <marcus.xm.cooper@stericsson.com> Signed-off-by: Lee Jones <lee.jones@linaro.org> Reviewed-by: Rabin VINCENT <rabin.vincent@stericsson.com> Tested-by: Rabin VINCENT <rabin.vincent@stericsson.com>
Diffstat (limited to 'drivers/power/ab8500_btemp.c')
-rw-r--r--drivers/power/ab8500_btemp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/power/ab8500_btemp.c b/drivers/power/ab8500_btemp.c
index 7336dcf45f7e..a9486f1a1b5b 100644
--- a/drivers/power/ab8500_btemp.c
+++ b/drivers/power/ab8500_btemp.c
@@ -158,7 +158,7 @@ static int ab8500_btemp_batctrl_volt_to_res(struct ab8500_btemp *di,
158 if (di->bm->adc_therm == ABx500_ADC_THERM_BATCTRL) { 158 if (di->bm->adc_therm == ABx500_ADC_THERM_BATCTRL) {
159 /* 159 /*
160 * If the battery has internal NTC, we use the current 160 * If the battery has internal NTC, we use the current
161 * source to calculate the resistance, 7uA or 20uA 161 * source to calculate the resistance.
162 */ 162 */
163 rbs = (v_batctrl * 1000 163 rbs = (v_batctrl * 1000
164 - di->bm->gnd_lift_resistance * inst_curr) 164 - di->bm->gnd_lift_resistance * inst_curr)
@@ -602,7 +602,7 @@ static int ab8500_btemp_id(struct ab8500_btemp *di)
602 602
603 /* 603 /*
604 * We only have to change current source if the 604 * We only have to change current source if the
605 * detected type is Type 1, else we use the 7uA source 605 * detected type is Type 1.
606 */ 606 */
607 if (di->bm->adc_therm == ABx500_ADC_THERM_BATCTRL && 607 if (di->bm->adc_therm == ABx500_ADC_THERM_BATCTRL &&
608 di->bm->batt_id == 1) { 608 di->bm->batt_id == 1) {