diff options
Diffstat (limited to 'include/linux/power/bq27x00_battery.h')
| -rw-r--r-- | include/linux/power/bq27x00_battery.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/include/linux/power/bq27x00_battery.h b/include/linux/power/bq27x00_battery.h new file mode 100644 index 000000000000..a857f719bf40 --- /dev/null +++ b/include/linux/power/bq27x00_battery.h | |||
| @@ -0,0 +1,19 @@ | |||
| 1 | #ifndef __LINUX_BQ27X00_BATTERY_H__ | ||
| 2 | #define __LINUX_BQ27X00_BATTERY_H__ | ||
| 3 | |||
| 4 | /** | ||
| 5 | * struct bq27000_plaform_data - Platform data for bq27000 devices | ||
| 6 | * @name: Name of the battery. If NULL the driver will fallback to "bq27000". | ||
| 7 | * @read: HDQ read callback. | ||
| 8 | * This function should provide access to the HDQ bus the battery is | ||
| 9 | * connected to. | ||
| 10 | * The first parameter is a pointer to the battery device, the second the | ||
| 11 | * register to be read. The return value should either be the content of | ||
| 12 | * the passed register or an error value. | ||
| 13 | */ | ||
| 14 | struct bq27000_platform_data { | ||
| 15 | const char *name; | ||
| 16 | int (*read)(struct device *dev, unsigned int); | ||
| 17 | }; | ||
| 18 | |||
| 19 | #endif | ||
