diff options
author | Anton Vorontsov <cbouatmailru@gmail.com> | 2011-02-28 17:37:13 +0300 |
---|---|---|
committer | Anton Vorontsov <cbouatmailru@gmail.com> | 2011-02-28 17:37:13 +0300 |
commit | b5db7cde69f87178fb771970a2b512a452a9d680 (patch) | |
tree | 9936cb9f2fa9334ae770958fdbf18d42284fcc34 /include/linux | |
parent | d6ccc442b12102414c1343f0adacaa8a1aaa516c (diff) | |
parent | 9e912f452931b3da9d13d716a381ba0d5fb74ced (diff) | |
download | linux-b5db7cde69f87178fb771970a2b512a452a9d680.tar.xz |
Merge branch 'bq27x00-for-upstream' of git://git.metafoo.de/linux-2.6
Diffstat (limited to 'include/linux')
-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 @@ +#ifndef __LINUX_BQ27X00_BATTERY_H__ +#define __LINUX_BQ27X00_BATTERY_H__ + +/** + * struct bq27000_plaform_data - Platform data for bq27000 devices + * @name: Name of the battery. If NULL the driver will fallback to "bq27000". + * @read: HDQ read callback. + * This function should provide access to the HDQ bus the battery is + * connected to. + * The first parameter is a pointer to the battery device, the second the + * register to be read. The return value should either be the content of + * the passed register or an error value. + */ +struct bq27000_platform_data { + const char *name; + int (*read)(struct device *dev, unsigned int); +}; + +#endif |