mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
ab8500_fg: Get rid of 'struct battery_type'
The struct is duplicated, plus causes the following flood: CC drivers/power/ab8500_fg.o ab8500_fg.c: In function ‘ab8500_fg_get_ext_psy_data’: b8500_fg.c:2081:8: warning: assignment from incompatible pointer type [enabled by default] Signed-off-by: Anton Vorontsov <[email protected]>
This commit is contained in:
parent
450ceb2b23
commit
c34a61b4e7
2 changed files with 2 additions and 60 deletions
|
|
@ -2077,7 +2077,8 @@ static int ab8500_fg_get_ext_psy_data(struct device *dev, void *data)
|
|||
switch (ext->type) {
|
||||
case POWER_SUPPLY_TYPE_BATTERY:
|
||||
if (!di->flags.batt_id_received) {
|
||||
const struct battery_type *b;
|
||||
const struct abx500_battery_type *b;
|
||||
|
||||
b = &(di->bat->bat_type[di->bat->batt_id]);
|
||||
|
||||
di->flags.batt_id_received = true;
|
||||
|
|
|
|||
Loading…
Reference in a new issue