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 */
....@@ -24,11 +26,15 @@
2426 BQ27546,
2527 BQ27742,
2628 BQ27545, /* bq27545 */
29
+ BQ27411,
2730 BQ27421, /* bq27421, bq27441, bq27621 */
2831 BQ27425,
2932 BQ27426,
3033 BQ27441,
3134 BQ27621,
35
+ BQ27Z561,
36
+ BQ28Z610,
37
+ BQ34Z100,
3238 };
3339
3440 struct bq27xxx_device_info;
....@@ -63,7 +69,9 @@
6369 struct bq27xxx_access_methods bus;
6470 struct bq27xxx_reg_cache cache;
6571 int charge_design_full;
72
+ bool removed;
6673 unsigned long last_update;
74
+ union power_supply_propval last_status;
6775 struct delayed_work work;
6876 struct power_supply *bat;
6977 struct list_head list;