0001 ==========================
0002 Regulator Driver Interface
0003 ==========================
0004
0005 The regulator driver interface is relatively simple and designed to allow
0006 regulator drivers to register their services with the core framework.
0007
0008
0009 Registration
0010 ============
0011
0012 Drivers can register a regulator by calling::
0013
0014 struct regulator_dev *regulator_register(struct regulator_desc *regulator_desc,
0015 const struct regulator_config *config);
0016
0017 This will register the regulator's capabilities and operations to the regulator
0018 core.
0019
0020 Regulators can be unregistered by calling::
0021
0022 void regulator_unregister(struct regulator_dev *rdev);
0023
0024
0025 Regulator Events
0026 ================
0027
0028 Regulators can send events (e.g. overtemperature, undervoltage, etc) to
0029 consumer drivers by calling::
0030
0031 int regulator_notifier_call_chain(struct regulator_dev *rdev,
0032 unsigned long event, void *data);