summaryrefslogtreecommitdiff
path: root/drivers/regulator/wm831x-dcdc.c
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2012-04-15 10:23:30 (GMT)
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-04-16 18:52:03 (GMT)
commit4ab5b3d92c863e55fa28cc41a7b005b7ae87afee (patch)
treeb4a57df2df36e334fbdab58e3e6b626a996312c5 /drivers/regulator/wm831x-dcdc.c
parent65b19ce6c223287ac95bbc22b12ef5a2738472d1 (diff)
downloadlinux-4ab5b3d92c863e55fa28cc41a7b005b7ae87afee.tar.xz
regulator: core: Provide regmap based voltage_sel operations
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>
Diffstat (limited to 'drivers/regulator/wm831x-dcdc.c')
0 files changed, 0 insertions, 0 deletions