]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ab8500-bm: Trivially fix up some incorrect and out-of-date comments
authorMarcus Cooper <marcus.xm.cooper@stericsson.com>
Wed, 28 Nov 2012 13:42:59 +0000 (14:42 +0100)
committerLee Jones <lee.jones@linaro.org>
Thu, 7 Mar 2013 04:35:56 +0000 (12:35 +0800)
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>
drivers/power/ab8500_btemp.c
drivers/power/ab8500_fg.c

index 7336dcf45f7e720f7db827efa995c6911d0f429a..a9486f1a1b5b394ad6e704db06679e2d87b28bc4 100644 (file)
@@ -158,7 +158,7 @@ static int ab8500_btemp_batctrl_volt_to_res(struct ab8500_btemp *di,
        if (di->bm->adc_therm == ABx500_ADC_THERM_BATCTRL) {
                /*
                 * If the battery has internal NTC, we use the current
-                * source to calculate the resistance, 7uA or 20uA
+                * source to calculate the resistance.
                 */
                rbs = (v_batctrl * 1000
                       - di->bm->gnd_lift_resistance * inst_curr)
@@ -602,7 +602,7 @@ static int ab8500_btemp_id(struct ab8500_btemp *di)
 
        /*
         * We only have to change current source if the
-        * detected type is Type 1, else we use the 7uA source
+        * detected type is Type 1.
         */
        if (di->bm->adc_therm == ABx500_ADC_THERM_BATCTRL &&
            di->bm->batt_id == 1) {
index 466ec6292d735ad18b7a1c61ad50d7465be2f27f..adc02004e7a33e3cafb549b512c74f57c31f721c 100644 (file)
@@ -1979,7 +1979,7 @@ static void ab8500_fg_instant_work(struct work_struct *work)
 }
 
 /**
- * ab8500_fg_cc_data_end_handler() - isr to get battery avg current.
+ * ab8500_fg_cc_data_end_handler() - end of data conversion isr.
  * @irq:       interrupt number
  * @_di:       pointer to the ab8500_fg structure
  *
@@ -1999,7 +1999,7 @@ static irqreturn_t ab8500_fg_cc_data_end_handler(int irq, void *_di)
 }
 
 /**
- * ab8500_fg_cc_convend_handler() - isr to get battery avg current.
+ * ab8500_fg_cc_int_calib_handler () - end of calibration isr.
  * @irq:       interrupt number
  * @_di:       pointer to the ab8500_fg structure
  *