regulator.txt 891 B

1234567891011121314151617181920212223242526272829303132
  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. struct device *dev, struct regulator_init_data *init_data,
  10. void *driver_data, struct device_node *of_node);
  11. This will register the regulators capabilities and operations to the regulator
  12. core.
  13. Regulators can be unregistered by calling :-
  14. void regulator_unregister(struct regulator_dev *rdev);
  15. Regulator Events
  16. ================
  17. Regulators can send events (e.g. over temp, under voltage, etc) to consumer
  18. drivers by calling :-
  19. int regulator_notifier_call_chain(struct regulator_dev *rdev,
  20. unsigned long event, void *data);