userspace-consumer.h 636 B

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