lp8727_charger: Add description in the private data
authorKim, Milo <Milo.Kim@ti.com>
Fri, 31 Aug 2012 09:27:04 +0000 (09:27 +0000)
committerAnton Vorontsov <anton.vorontsov@linaro.org>
Fri, 21 Sep 2012 01:07:06 +0000 (18:07 -0700)
Add description and relocate data.

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

index c0a6fea..9f25e15 100644 (file)
@@ -88,13 +88,17 @@ struct lp8727_chg {
        struct device *dev;
        struct i2c_client *client;
        struct mutex xfer_lock;
-       struct delayed_work work;
-       struct lp8727_platform_data *pdata;
        struct lp8727_psy *psy;
-       struct lp8727_chg_param *chg_param;
+       struct lp8727_platform_data *pdata;
+
+       /* Charger Data */
        enum lp8727_dev_id devid;
-       unsigned long debounce_jiffies;
+       struct lp8727_chg_param *chg_param;
+
+       /* Interrupt Handling */
        int irq;
+       struct delayed_work work;
+       unsigned long debounce_jiffies;
 };
 
 static int lp8727_read_bytes(struct lp8727_chg *pchg, u8 reg, u8 *data, u8 len)