Since the enable(), disable() and is_enabled() operations for most regmap based regulators come down to reading and updating a single register bit we can factor out the code and allow these drivers to just define which bit to update using the enable_reg and enable_mask fields in their desc and then use operations provided by the core. As well as the code saving this opens the door to future optimisation of the bulk operations - if the core can realise that we are updating a single register for multiple regulators then it should be able to combine these updates into a single physical operation. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Acked-by: Liam Girdwood <lrg@ti.com> |
||
|---|---|---|
| .. | ||
| ab8500.h | ||
| consumer.h | ||
| db8500-prcmu.h | ||
| driver.h | ||
| fixed.h | ||
| gpio-regulator.h | ||
| lp3971.h | ||
| lp3972.h | ||
| machine.h | ||
| max1586.h | ||
| max8649.h | ||
| max8660.h | ||
| max8952.h | ||
| of_regulator.h | ||
| tps6507x.h | ||
| tps62360.h | ||
| tps65090-regulator.h | ||
| userspace-consumer.h | ||