regulator.txt 866 B

123456789101112131415161718192021222324252627282930
  1. Regulator Driver Interface
  2. ==========================
  3. The regulator driver interface is relatively simple and designed to allow
  4. regulator drivers to register their services with the core framework.
  5. Registration
  6. ============
  7. Drivers can register a regulator by calling :-
  8. struct regulator_dev *regulator_register(struct regulator_desc *regulator_desc,
  9. void *reg_data);
  10. This will register the regulators capabilities and operations the regulator
  11. core. The core does not touch reg_data (private to regulator driver).
  12. Regulators can be unregistered by calling :-
  13. void regulator_unregister(struct regulator_dev *rdev);
  14. Regulator Events
  15. ================
  16. Regulators can send events (e.g. over temp, under voltage, etc) to consumer
  17. drivers by calling :-
  18. int regulator_notifier_call_chain(struct regulator_dev *rdev,
  19. unsigned long event, void *data);