regulator: core: add regulator_get_linear_step()
authorPaul Walmsley <pwalmsley@nvidia.com>
Fri, 7 Jun 2013 08:06:56 +0000 (08:06 +0000)
committerMark Brown <broonie@linaro.org>
Fri, 7 Jun 2013 10:19:29 +0000 (11:19 +0100)
commit2a668a8bc2cbe7a464ab1212475a3efb23a94b1e
tree74419d34e14f6307468a659e63072426d65b592e
parentd683b96b072dc4680fc74964eca77e6a23d1fa6e
regulator: core: add regulator_get_linear_step()

Add regulator_get_linear_step(), which returns the voltage step size
between VSEL values for linear regulators.  This is intended for use
by regulator consumers which build their own voltage-to-VSEL tables.

Signed-off-by: Paul Walmsley <pwalmsley@nvidia.com>
Reviewed-by: Andrew Chew <achew@nvidia.com>
Cc: Matthew Longnecker <mlongnecker@nvidia.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/regulator/core.c
include/linux/regulator/consumer.h