]> git.karo-electronics.de Git - linux-beck.git/commitdiff
lp8727_charger: More pure cosmetic improvements
authorKim, Milo <Milo.Kim@ti.com>
Fri, 31 Aug 2012 09:27:22 +0000 (09:27 +0000)
committerAnton Vorontsov <anton.vorontsov@linaro.org>
Fri, 21 Sep 2012 01:07:23 +0000 (18:07 -0700)
This is really minor, but it improves the readability.

Signed-off-by: Milo(Woogyom) Kim <milo.kim@ti.com>
Signed-off-by: Anton Vorontsov <anton.vorontsov@linaro.org>
drivers/power/lp8727_charger.c
include/linux/platform_data/lp8727.h

index 717a97690dd4ac3e76c9d1ac90a1bf74c01d685d..c628224b7f58788b94df718fb087c1b56e5a03ed 100644 (file)
@@ -149,7 +149,6 @@ static int lp8727_init_device(struct lp8727_chg *pchg)
        if (ret)
                return ret;
 
-
        val = LP8727_ID200_EN | LP8727_ADC_EN | LP8727_CP_EN;
        ret = lp8727_write_byte(pchg, LP8727_CTRL1, val);
        if (ret)
@@ -162,6 +161,7 @@ static int lp8727_init_device(struct lp8727_chg *pchg)
 static int lp8727_is_dedicated_charger(struct lp8727_chg *pchg)
 {
        u8 val;
+
        lp8727_read_byte(pchg, LP8727_STATUS1, &val);
        return val & LP8727_DCPORT;
 }
@@ -169,6 +169,7 @@ static int lp8727_is_dedicated_charger(struct lp8727_chg *pchg)
 static int lp8727_is_usb_charger(struct lp8727_chg *pchg)
 {
        u8 val;
+
        lp8727_read_byte(pchg, LP8727_STATUS1, &val);
        return val & LP8727_CHPORT;
 }
index a8b8dbc418ccf1733c686c2090a9e0c55b91570f..47128a50e04ecae182d9085b1af3d3084094194a 100644 (file)
@@ -38,7 +38,7 @@ enum lp8727_ichg {
 /**
  * struct lp8727_chg_param
  * @eoc_level : end of charge level setting
- * @ichg : charging current
+ * @ichg      : charging current
  */
 struct lp8727_chg_param {
        enum lp8727_eoc_level eoc_level;
@@ -47,10 +47,10 @@ struct lp8727_chg_param {
 
 /**
  * struct lp8727_platform_data
- * @get_batt_present : check battery status - exists or not
- * @get_batt_level : get battery voltage (mV)
+ * @get_batt_present  : check battery status - exists or not
+ * @get_batt_level    : get battery voltage (mV)
  * @get_batt_capacity : get battery capacity (%)
- * @get_batt_temp : get battery temperature
+ * @get_batt_temp     : get battery temperature
  * @ac                : charging parameters for AC type charger
  * @usb               : charging parameters for USB type charger
  * @debounce_msec     : interrupt debounce time