regulator: tps65217: Convert to regulator_[is_enabled|get_voltage_sel]_regmap
authorAxel Lin <axel.lin@gmail.com>
Wed, 13 Jun 2012 03:27:11 +0000 (11:27 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 13 Jun 2012 17:57:56 +0000 (18:57 +0100)
commitb4bc9ef6253578ecc71eec79a7dd423d0a282a4b
treea26368efc8089f05e847c75e371a04a3c0e4158f
parent74e20e569158063970624e360c8395ac5cffd654
regulator: tps65217: Convert to regulator_[is_enabled|get_voltage_sel]_regmap

This patch converts .is_enabled and .get_voltage_sel to
regulator_is_enabled_regmap and regulator_get_voltage_sel_regmap.

For .enable, .disable, and .set_voltage_sel, the write protect level is either
1 or 2. So we cannot use regulator_[enable|disable|set_voltage_sel]_regmap.

Now we store the enable reg/mask and vsel reg/mask in regulator_desc,
so we can remove enable_mask, set_vout_reg, and set_vout_mask from
struct tps_info.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/regulator/tps65217-regulator.c
include/linux/mfd/tps65217.h
This page took 0.048297 seconds and 5 git commands to generate.