mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-11 16:16:41 +07:00
4ab5b3d92c
Since the voltage selector operations are intended to directly map a bitfield in the device register map into regulator API operations the code for implementing them is usually very standard we can save some code by providing standard implementations for devices using the regmap API. Drivers using regmap can pass their regmap in in the regmap_config struct, set vsel_reg and vsel_mask in their regulator_desc and then use regulator_{get,set}_voltage_sel_regmap in their ops. This saves a small amount of code from each driver. 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 |