regulator.txt 833 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. const struct regulator_config *config);
  10. This will register the regulator's capabilities and operations to the regulator
  11. core.
  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. overtemperature, undervoltage, etc) to
  17. consumer drivers by calling :-
  18. int regulator_notifier_call_chain(struct regulator_dev *rdev,
  19. unsigned long event, void *data);