hc
2024-10-22 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5
kernel/include/linux/power/bq27xxx_battery.h
....@@ -2,6 +2,8 @@
22 #ifndef __LINUX_BQ27X00_BATTERY_H__
33 #define __LINUX_BQ27X00_BATTERY_H__
44
5
+#include <linux/power_supply.h>
6
+
57 enum bq27xxx_chip {
68 BQ27000 = 1, /* bq27000, bq27200 */
79 BQ27010, /* bq27010, bq27210 */
....@@ -67,7 +69,9 @@
6769 struct bq27xxx_access_methods bus;
6870 struct bq27xxx_reg_cache cache;
6971 int charge_design_full;
72
+ bool removed;
7073 unsigned long last_update;
74
+ union power_supply_propval last_status;
7175 struct delayed_work work;
7276 struct power_supply *bat;
7377 struct list_head list;