userspace-consumer.h 675 B

1234567891011121314151617181920212223242526
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef __REGULATOR_PLATFORM_CONSUMER_H_
  3. #define __REGULATOR_PLATFORM_CONSUMER_H_
  4. struct regulator_consumer_supply;
  5. /**
  6. * struct regulator_userspace_consumer_data - line consumer
  7. * initialisation data.
  8. *
  9. * @name: Name for the consumer line
  10. * @num_supplies: Number of supplies feeding the line
  11. * @supplies: Supplies configuration.
  12. * @init_on: Set if the regulators supplying the line should be
  13. * enabled during initialisation
  14. */
  15. struct regulator_userspace_consumer_data {
  16. const char *name;
  17. int num_supplies;
  18. struct regulator_bulk_data *supplies;
  19. bool init_on;
  20. };
  21. #endif /* __REGULATOR_PLATFORM_CONSUMER_H_ */