aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@ingics.com>2013-03-05 01:16:00 -0500
committerMark Brown <broonie@opensource.wolfsonmicro.com>2013-03-05 04:56:39 -0500
commit51dcdafcb720a9d1fd73b597d0ccf48837abc59f (patch)
tree26eac5d173fb62350aadeb35a63f908acedfbc85 /include
parent0ac682db5c18358d6b3606cab6147dc294c4286d (diff)
regulator: core: Add enable_is_inverted flag to indicate set enable_mask bits to disable
Add enable_is_inverted flag to indicate set enable_mask bits to disable when using regulator_enable_regmap and friends APIs. Signed-off-by: Axel Lin <axel.lin@ingics.com> Reviewed-by: Haojian Zhuang <haojian.zhuang@gmail.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/regulator/driver.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/regulator/driver.h b/include/linux/regulator/driver.h
index 7df93f52db08..07ea8f1a127e 100644
--- a/include/linux/regulator/driver.h
+++ b/include/linux/regulator/driver.h
@@ -199,6 +199,8 @@ enum regulator_type {
199 * output when using regulator_set_voltage_sel_regmap 199 * output when using regulator_set_voltage_sel_regmap
200 * @enable_reg: Register for control when using regmap enable/disable ops 200 * @enable_reg: Register for control when using regmap enable/disable ops
201 * @enable_mask: Mask for control when using regmap enable/disable ops 201 * @enable_mask: Mask for control when using regmap enable/disable ops
202 * @enable_is_inverted: A flag to indicate set enable_mask bits to disable
203 * when using regulator_enable_regmap and friends APIs.
202 * @bypass_reg: Register for control when using regmap set_bypass 204 * @bypass_reg: Register for control when using regmap set_bypass
203 * @bypass_mask: Mask for control when using regmap set_bypass 205 * @bypass_mask: Mask for control when using regmap set_bypass
204 * 206 *
@@ -228,6 +230,7 @@ struct regulator_desc {
228 unsigned int apply_bit; 230 unsigned int apply_bit;
229 unsigned int enable_reg; 231 unsigned int enable_reg;
230 unsigned int enable_mask; 232 unsigned int enable_mask;
233 bool enable_is_inverted;
231 unsigned int bypass_reg; 234 unsigned int bypass_reg;
232 unsigned int bypass_mask; 235 unsigned int bypass_mask;
233 236