1 #ifndef __LINUX_BQ27X00_BATTERY_H__
2 #define __LINUX_BQ27X00_BATTERY_H__
3 
4 /**
5  * struct bq27xxx_plaform_data - Platform data for bq27xxx devices
6  * @name: Name of the battery.
7  * @chip: Chip class number of this device.
8  * @read: HDQ read callback.
9  *	This function should provide access to the HDQ bus the battery is
10  *	connected to.
11  *	The first parameter is a pointer to the battery device, the second the
12  *	register to be read. The return value should either be the content of
13  *	the passed register or an error value.
14  */
15 enum bq27xxx_chip {
16 	BQ27000 = 1, /* bq27000, bq27200 */
17 	BQ27010, /* bq27010, bq27210 */
18 	BQ27500, /* bq27500, bq27510, bq27520 */
19 	BQ27530, /* bq27530, bq27531 */
20 	BQ27541, /* bq27541, bq27542, bq27546, bq27742 */
21 	BQ27545, /* bq27545 */
22 	BQ27421, /* bq27421, bq27425, bq27441, bq27621 */
23 };
24 
25 struct bq27xxx_platform_data {
26 	const char *name;
27 	enum bq27xxx_chip chip;
28 	int (*read)(struct device *dev, unsigned int);
29 };
30 
31 #endif
32