| .. | .. |
|---|
| 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 */ |
|---|
| .. | .. |
|---|
| 24 | 26 | BQ27546, |
|---|
| 25 | 27 | BQ27742, |
|---|
| 26 | 28 | BQ27545, /* bq27545 */ |
|---|
| 29 | + BQ27411, |
|---|
| 27 | 30 | BQ27421, /* bq27421, bq27441, bq27621 */ |
|---|
| 28 | 31 | BQ27425, |
|---|
| 29 | 32 | BQ27426, |
|---|
| 30 | 33 | BQ27441, |
|---|
| 31 | 34 | BQ27621, |
|---|
| 35 | + BQ27Z561, |
|---|
| 36 | + BQ28Z610, |
|---|
| 37 | + BQ34Z100, |
|---|
| 32 | 38 | }; |
|---|
| 33 | 39 | |
|---|
| 34 | 40 | struct bq27xxx_device_info; |
|---|
| .. | .. |
|---|
| 63 | 69 | struct bq27xxx_access_methods bus; |
|---|
| 64 | 70 | struct bq27xxx_reg_cache cache; |
|---|
| 65 | 71 | int charge_design_full; |
|---|
| 72 | + bool removed; |
|---|
| 66 | 73 | unsigned long last_update; |
|---|
| 74 | + union power_supply_propval last_status; |
|---|
| 67 | 75 | struct delayed_work work; |
|---|
| 68 | 76 | struct power_supply *bat; |
|---|
| 69 | 77 | struct list_head list; |
|---|