diff options
| author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2013-05-21 03:52:16 -0400 |
|---|---|---|
| committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2013-05-21 03:52:16 -0400 |
| commit | e1b73cba13a0cc68dd4f746eced15bd6bb24cda4 (patch) | |
| tree | b1c9e10730724024a700031ad56c20419dabb500 /include/linux/regulator/driver.h | |
| parent | 98304ad186296dc1e655399e28d5973c21db6a73 (diff) | |
| parent | c7788792a5e7b0d5d7f96d0766b4cb6112d47d75 (diff) | |
Merge tag 'v3.10-rc2' into drm-intel-next-queued
Backmerge Linux 3.10-rc2 since the various (rather trivial) conflicts
grew a bit out of hand. intel_dp.c has the only real functional
conflict since the logic changed while dev_priv->edp.bpp was moved
around.
Also squash in a whitespace fixup from Ben Widawsky for
i915_gem_gtt.c, git seems to do something pretty strange in there
(which I don't fully understand tbh).
Conflicts:
drivers/gpu/drm/i915/i915_reg.h
drivers/gpu/drm/i915/intel_dp.c
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'include/linux/regulator/driver.h')
| -rw-r--r-- | include/linux/regulator/driver.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/include/linux/regulator/driver.h b/include/linux/regulator/driver.h index 7df93f52db08..6700cc94bdd1 100644 --- a/include/linux/regulator/driver.h +++ b/include/linux/regulator/driver.h | |||
| @@ -22,6 +22,7 @@ | |||
| 22 | struct regmap; | 22 | struct regmap; |
| 23 | struct regulator_dev; | 23 | struct regulator_dev; |
| 24 | struct regulator_init_data; | 24 | struct regulator_init_data; |
| 25 | struct regulator_enable_gpio; | ||
| 25 | 26 | ||
| 26 | enum regulator_status { | 27 | enum regulator_status { |
| 27 | REGULATOR_STATUS_OFF, | 28 | REGULATOR_STATUS_OFF, |
| @@ -199,6 +200,8 @@ enum regulator_type { | |||
| 199 | * output when using regulator_set_voltage_sel_regmap | 200 | * output when using regulator_set_voltage_sel_regmap |
| 200 | * @enable_reg: Register for control when using regmap enable/disable ops | 201 | * @enable_reg: Register for control when using regmap enable/disable ops |
| 201 | * @enable_mask: Mask for control when using regmap enable/disable ops | 202 | * @enable_mask: Mask for control when using regmap enable/disable ops |
| 203 | * @enable_is_inverted: A flag to indicate set enable_mask bits to disable | ||
| 204 | * when using regulator_enable_regmap and friends APIs. | ||
| 202 | * @bypass_reg: Register for control when using regmap set_bypass | 205 | * @bypass_reg: Register for control when using regmap set_bypass |
| 203 | * @bypass_mask: Mask for control when using regmap set_bypass | 206 | * @bypass_mask: Mask for control when using regmap set_bypass |
| 204 | * | 207 | * |
| @@ -228,6 +231,7 @@ struct regulator_desc { | |||
| 228 | unsigned int apply_bit; | 231 | unsigned int apply_bit; |
| 229 | unsigned int enable_reg; | 232 | unsigned int enable_reg; |
| 230 | unsigned int enable_mask; | 233 | unsigned int enable_mask; |
| 234 | bool enable_is_inverted; | ||
| 231 | unsigned int bypass_reg; | 235 | unsigned int bypass_reg; |
| 232 | unsigned int bypass_mask; | 236 | unsigned int bypass_mask; |
| 233 | 237 | ||
| @@ -302,8 +306,7 @@ struct regulator_dev { | |||
| 302 | 306 | ||
| 303 | struct dentry *debugfs; | 307 | struct dentry *debugfs; |
| 304 | 308 | ||
| 305 | int ena_gpio; | 309 | struct regulator_enable_gpio *ena_pin; |
| 306 | unsigned int ena_gpio_invert:1; | ||
| 307 | unsigned int ena_gpio_state:1; | 310 | unsigned int ena_gpio_state:1; |
| 308 | }; | 311 | }; |
| 309 | 312 | ||
| @@ -329,6 +332,8 @@ int regulator_map_voltage_linear(struct regulator_dev *rdev, | |||
| 329 | int min_uV, int max_uV); | 332 | int min_uV, int max_uV); |
| 330 | int regulator_map_voltage_iterate(struct regulator_dev *rdev, | 333 | int regulator_map_voltage_iterate(struct regulator_dev *rdev, |
| 331 | int min_uV, int max_uV); | 334 | int min_uV, int max_uV); |
| 335 | int regulator_map_voltage_ascend(struct regulator_dev *rdev, | ||
| 336 | int min_uV, int max_uV); | ||
| 332 | int regulator_get_voltage_sel_regmap(struct regulator_dev *rdev); | 337 | int regulator_get_voltage_sel_regmap(struct regulator_dev *rdev); |
| 333 | int regulator_set_voltage_sel_regmap(struct regulator_dev *rdev, unsigned sel); | 338 | int regulator_set_voltage_sel_regmap(struct regulator_dev *rdev, unsigned sel); |
| 334 | int regulator_is_enabled_regmap(struct regulator_dev *rdev); | 339 | int regulator_is_enabled_regmap(struct regulator_dev *rdev); |
