summaryrefslogtreecommitdiffstats
path: root/drivers/power/lp8727_charger.c
diff options
context:
space:
mode:
authorKim, Milo <Milo.Kim@ti.com>2012-08-31 11:27:04 +0200
committerAnton Vorontsov <anton.vorontsov@linaro.org>2012-09-21 03:07:06 +0200
commit1ae9df7d49e964b53f72254b20ab7eb713306396 (patch)
tree066bc9dac885ed3404e8ed77f6e25bdab0760df9 /drivers/power/lp8727_charger.c
parentlp8727_charger: Fix a typo - chg_parm to chg_param (diff)
downloadlinux-1ae9df7d49e964b53f72254b20ab7eb713306396.tar.xz
linux-1ae9df7d49e964b53f72254b20ab7eb713306396.zip
lp8727_charger: Add description in the private data
Add description and relocate data. Signed-off-by: Milo(Woogyom) Kim <milo.kim@ti.com> Signed-off-by: Anton Vorontsov <anton.vorontsov@linaro.org>
Diffstat (limited to 'drivers/power/lp8727_charger.c')
-rw-r--r--drivers/power/lp8727_charger.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/drivers/power/lp8727_charger.c b/drivers/power/lp8727_charger.c
index c0a6feab79ec..9f25e151a36d 100644
--- a/drivers/power/lp8727_charger.c
+++ b/drivers/power/lp8727_charger.c
@@ -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)