diff options
Diffstat (limited to 'drivers/power')
-rw-r--r-- | drivers/power/lp8727_charger.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/power/lp8727_charger.c b/drivers/power/lp8727_charger.c index 4ee71a90e248..5ef41b819172 100644 --- a/drivers/power/lp8727_charger.c +++ b/drivers/power/lp8727_charger.c | |||
@@ -367,28 +367,28 @@ static int lp8727_battery_get_property(struct power_supply *psy, | |||
367 | return -EINVAL; | 367 | return -EINVAL; |
368 | 368 | ||
369 | if (pdata->get_batt_present) | 369 | if (pdata->get_batt_present) |
370 | val->intval = pchg->pdata->get_batt_present(); | 370 | val->intval = pdata->get_batt_present(); |
371 | break; | 371 | break; |
372 | case POWER_SUPPLY_PROP_VOLTAGE_NOW: | 372 | case POWER_SUPPLY_PROP_VOLTAGE_NOW: |
373 | if (!pdata) | 373 | if (!pdata) |
374 | return -EINVAL; | 374 | return -EINVAL; |
375 | 375 | ||
376 | if (pdata->get_batt_level) | 376 | if (pdata->get_batt_level) |
377 | val->intval = pchg->pdata->get_batt_level(); | 377 | val->intval = pdata->get_batt_level(); |
378 | break; | 378 | break; |
379 | case POWER_SUPPLY_PROP_CAPACITY: | 379 | case POWER_SUPPLY_PROP_CAPACITY: |
380 | if (!pdata) | 380 | if (!pdata) |
381 | return -EINVAL; | 381 | return -EINVAL; |
382 | 382 | ||
383 | if (pdata->get_batt_capacity) | 383 | if (pdata->get_batt_capacity) |
384 | val->intval = pchg->pdata->get_batt_capacity(); | 384 | val->intval = pdata->get_batt_capacity(); |
385 | break; | 385 | break; |
386 | case POWER_SUPPLY_PROP_TEMP: | 386 | case POWER_SUPPLY_PROP_TEMP: |
387 | if (!pdata) | 387 | if (!pdata) |
388 | return -EINVAL; | 388 | return -EINVAL; |
389 | 389 | ||
390 | if (pdata->get_batt_temp) | 390 | if (pdata->get_batt_temp) |
391 | val->intval = pchg->pdata->get_batt_temp(); | 391 | val->intval = pdata->get_batt_temp(); |
392 | break; | 392 | break; |
393 | default: | 393 | default: |
394 | break; | 394 | break; |