bq27x00_battery.h 639 B

12345678910111213141516171819
  1. #ifndef __LINUX_BQ27X00_BATTERY_H__
  2. #define __LINUX_BQ27X00_BATTERY_H__
  3. /**
  4. * struct bq27000_plaform_data - Platform data for bq27000 devices
  5. * @name: Name of the battery. If NULL the driver will fallback to "bq27000".
  6. * @read: HDQ read callback.
  7. * This function should provide access to the HDQ bus the battery is
  8. * connected to.
  9. * The first parameter is a pointer to the battery device, the second the
  10. * register to be read. The return value should either be the content of
  11. * the passed register or an error value.
  12. */
  13. struct bq27000_platform_data {
  14. const char *name;
  15. int (*read)(struct device *dev, unsigned int);
  16. };
  17. #endif