regulator: consumer device interface
commite2ce4eaa76214f65a3f328ec5b45c30248115768
authorLiam Girdwood <lg@opensource.wolfsonmicro.com>
Wed, 30 Apr 2008 14:10:07 +0000 (30 15:10 +0100)
committerLiam Girdwood <lg@opensource.wolfsonmicro.com>
Wed, 30 Jul 2008 09:10:20 +0000 (30 10:10 +0100)
treeec90170e0b26ebecfa94b1f0416d8c5f2c27efba
parent6e86841d05f371b5b9b86ce76c02aaee83352298
regulator: consumer device interface

Add support to allow consumer device drivers to control their regulator
power supply.

This uses a similar API to the kernel clock interface in that consumer
drivers can get and put a regulator (like they can with clocks atm) and
get/set voltage, current limit, mode, enable and disable. This should
allow consumers complete control over their supply voltage and current
limit. This also compiles out if not in use so drivers can be reused in
systems with no regulator based power control.

Signed-off-by: Liam Girdwood <lg@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
include/linux/regulator/consumer.h [new file with mode: 0644]