kernel/include/linux/power/bq27xxx_battery.h
.. .. @@ -2,6 +2,8 @@ 2 2 #ifndef __LINUX_BQ27X00_BATTERY_H__ 3 3 #define __LINUX_BQ27X00_BATTERY_H__ 4 4 5 +#include <linux/power_supply.h>6 +5 7 enum bq27xxx_chip { 6 8 BQ27000 = 1, /* bq27000, bq27200 */ 7 9 BQ27010, /* bq27010, bq27210 */ .. .. @@ -67,7 +69,9 @@ 67 69 struct bq27xxx_access_methods bus; 68 70 struct bq27xxx_reg_cache cache; 69 71 int charge_design_full; 72 + bool removed;70 73 unsigned long last_update; 74 + union power_supply_propval last_status;71 75 struct delayed_work work; 72 76 struct power_supply *bat; 73 77 struct list_head list;