blob: e70a93a6799fe467cc6e959169aab12f8eaa8f7e [file] [log] [blame]
Lars-Peter Clausen7fb7ba52010-05-24 19:55:27 +02001#ifndef __LINUX_BQ27X00_BATTERY_H__
2#define __LINUX_BQ27X00_BATTERY_H__
3
4/**
Andrew F. Davis081bab22015-09-22 14:35:06 -05005 * struct bq27xxx_plaform_data - Platform data for bq27xxx devices
Lars-Peter Clausen7fb7ba52010-05-24 19:55:27 +02006 * @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 */
Andrew F. Davis081bab22015-09-22 14:35:06 -050014struct bq27xxx_platform_data {
Lars-Peter Clausen7fb7ba52010-05-24 19:55:27 +020015 const char *name;
16 int (*read)(struct device *dev, unsigned int);
17};
18
19#endif