aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/power
diff options
context:
space:
mode:
authorKim, Milo <Milo.Kim@ti.com>2012-08-31 05:26:49 -0400
committerAnton Vorontsov <anton.vorontsov@linaro.org>2012-09-20 21:06:54 -0400
commit56d99ed93a52489da3c0f84424489390b6cb0312 (patch)
tree44424d2666d50b032d2977ee42e4a29931342107 /drivers/power
parent5e00b9761b6e56096da8276a51484e5c53df72c6 (diff)
lp8727_charger: Fix a typo - chg_parm to chg_param
Signed-off-by: Milo(Woogyom) Kim <milo.kim@ti.com> Signed-off-by: Anton Vorontsov <anton.vorontsov@linaro.org>
Diffstat (limited to 'drivers/power')
-rw-r--r--drivers/power/lp8727_charger.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/power/lp8727_charger.c b/drivers/power/lp8727_charger.c
index 80e38aecc131..c0a6feab79ec 100644
--- a/drivers/power/lp8727_charger.c
+++ b/drivers/power/lp8727_charger.c
@@ -91,7 +91,7 @@ struct lp8727_chg {
91 struct delayed_work work; 91 struct delayed_work work;
92 struct lp8727_platform_data *pdata; 92 struct lp8727_platform_data *pdata;
93 struct lp8727_psy *psy; 93 struct lp8727_psy *psy;
94 struct lp8727_chg_param *chg_parm; 94 struct lp8727_chg_param *chg_param;
95 enum lp8727_dev_id devid; 95 enum lp8727_dev_id devid;
96 unsigned long debounce_jiffies; 96 unsigned long debounce_jiffies;
97 int irq; 97 int irq;
@@ -183,14 +183,14 @@ static void lp8727_id_detection(struct lp8727_chg *pchg, u8 id, int vbusin)
183 switch (id) { 183 switch (id) {
184 case 0x5: 184 case 0x5:
185 devid = LP8727_ID_TA; 185 devid = LP8727_ID_TA;
186 pchg->chg_parm = pdata ? pdata->ac : NULL; 186 pchg->chg_param = pdata ? pdata->ac : NULL;
187 break; 187 break;
188 case 0xB: 188 case 0xB:
189 if (lp8727_is_dedicated_charger(pchg)) { 189 if (lp8727_is_dedicated_charger(pchg)) {
190 pchg->chg_parm = pdata ? pdata->ac : NULL; 190 pchg->chg_param = pdata ? pdata->ac : NULL;
191 devid = LP8727_ID_DEDICATED_CHG; 191 devid = LP8727_ID_DEDICATED_CHG;
192 } else if (lp8727_is_usb_charger(pchg)) { 192 } else if (lp8727_is_usb_charger(pchg)) {
193 pchg->chg_parm = pdata ? pdata->usb : NULL; 193 pchg->chg_param = pdata ? pdata->usb : NULL;
194 devid = LP8727_ID_USB_CHG; 194 devid = LP8727_ID_USB_CHG;
195 swctrl = LP8727_SW_DM1_DM | LP8727_SW_DP2_DP; 195 swctrl = LP8727_SW_DM1_DM | LP8727_SW_DP2_DP;
196 } else if (vbusin) { 196 } else if (vbusin) {
@@ -200,7 +200,7 @@ static void lp8727_id_detection(struct lp8727_chg *pchg, u8 id, int vbusin)
200 break; 200 break;
201 default: 201 default:
202 devid = LP8727_ID_NONE; 202 devid = LP8727_ID_NONE;
203 pchg->chg_parm = NULL; 203 pchg->chg_param = NULL;
204 break; 204 break;
205 } 205 }
206 206
@@ -404,9 +404,9 @@ static void lp8727_charger_changed(struct power_supply *psy)
404 return; 404 return;
405 405
406 /* update charging parameters */ 406 /* update charging parameters */
407 if (pchg->chg_parm) { 407 if (pchg->chg_param) {
408 eoc_level = pchg->chg_parm->eoc_level; 408 eoc_level = pchg->chg_param->eoc_level;
409 ichg = pchg->chg_parm->ichg; 409 ichg = pchg->chg_param->ichg;
410 val = (ichg << LP8727_ICHG_SHIFT) | eoc_level; 410 val = (ichg << LP8727_ICHG_SHIFT) | eoc_level;
411 lp8727_write_byte(pchg, LP8727_CHGCTRL2, val); 411 lp8727_write_byte(pchg, LP8727_CHGCTRL2, val);
412 } 412 }