gpio-charger.h 708 B

1234567891011121314151617181920212223242526
  1. /* SPDX-License-Identifier: GPL-2.0-or-later */
  2. /*
  3. * Copyright (C) 2010, Lars-Peter Clausen <[email protected]>
  4. */
  5. #ifndef __LINUX_POWER_GPIO_CHARGER_H__
  6. #define __LINUX_POWER_GPIO_CHARGER_H__
  7. #include <linux/power_supply.h>
  8. #include <linux/types.h>
  9. /**
  10. * struct gpio_charger_platform_data - platform_data for gpio_charger devices
  11. * @name: Name for the chargers power_supply device
  12. * @type: Type of the charger
  13. * @supplied_to: Array of battery names to which this chargers supplies power
  14. * @num_supplicants: Number of entries in the supplied_to array
  15. */
  16. struct gpio_charger_platform_data {
  17. const char *name;
  18. enum power_supply_type type;
  19. char **supplied_to;
  20. size_t num_supplicants;
  21. };
  22. #endif