Merge remote-tracking branch 'regulator/topic/linar' into regulator-next
authorMark Brown <broonie@linaro.org>
Mon, 1 Jul 2013 10:17:08 +0000 (11:17 +0100)
committerMark Brown <broonie@linaro.org>
Mon, 1 Jul 2013 10:17:08 +0000 (11:17 +0100)
1  2 
drivers/regulator/core.c

diff --combined drivers/regulator/core.c
index 815d6df8bd5f70fab479247c81c6afe7fa746841,f07d7adefdda67620cd15ee6340d160a5cb2b703..288c75abc19034c06e62772ea6b6cc62242da473
@@@ -1539,10 -1539,7 +1539,10 @@@ static void regulator_ena_gpio_free(str
  }
  
  /**
 - * Balance enable_count of each GPIO and actual GPIO pin control.
 + * regulator_ena_gpio_ctrl - balance enable_count of each GPIO and actual GPIO pin control
 + * @rdev: regulator_dev structure
 + * @enable: enable GPIO at initial use?
 + *
   * GPIO is enabled in case of initial use. (enable_count is 0)
   * GPIO is disabled when it is not shared any more. (enable_count <= 1)
   */
@@@ -2137,6 -2134,21 +2137,21 @@@ int regulator_list_voltage(struct regul
  }
  EXPORT_SYMBOL_GPL(regulator_list_voltage);
  
+ /**
+  * regulator_get_linear_step - return the voltage step size between VSEL values
+  * @regulator: regulator source
+  *
+  * Returns the voltage step size between VSEL values for linear
+  * regulators, or return 0 if the regulator isn't a linear regulator.
+  */
+ unsigned int regulator_get_linear_step(struct regulator *regulator)
+ {
+       struct regulator_dev *rdev = regulator->rdev;
+       return rdev->desc->uV_step;
+ }
+ EXPORT_SYMBOL_GPL(regulator_get_linear_step);
  /**
   * regulator_is_supported_voltage - check if a voltage range can be supported
   *
@@@ -2705,7 -2717,7 +2720,7 @@@ EXPORT_SYMBOL_GPL(regulator_get_voltage
  /**
   * regulator_set_current_limit - set regulator output current limit
   * @regulator: regulator source
 - * @min_uA: Minimuum supported current in uA
 + * @min_uA: Minimum supported current in uA
   * @max_uA: Maximum supported current in uA
   *
   * Sets current sink to the desired output current. This can be set during