summaryrefslogtreecommitdiffstats
path: root/drivers/regulator/helpers.c
Commit message (Collapse)AuthorAgeFilesLines
* regulator: Fix the function name in documentationKrzysztof Kozlowski2015-04-191-1/+1
| | | | | | | | The function name in kernel-doc for regulator_map_voltage_linear_range() was wrong. Signed-off-by: Krzysztof Kozlowski <k.kozlowski.k@gmail.com> Signed-off-by: Mark Brown <broonie@kernel.org>
* regulator: helpers: Modify helpers enabling multi-bit controlCarlo Caione2014-03-061-16/+32
| | | | | | | | | | | | | | | | | | This patch extends the regulator helpers to account for device that use multiple bits for control when using regmap enable/disable/bypass ops. The actual regulator helpers wrongly assume that the regulator control is always performed using single bits, using in the regulator_desc struct only two parameters *_reg and *_mask defining register and mask for control. This patch extends this struct and introduces the helpers to take into account devices where control is performed using multiple bits and specific multi-bit values are used for enabling/disabling/bypassing the regulator. Signed-off-by: Carlo Caione <carlo@caione.org> Signed-off-by: Mark Brown <broonie@linaro.org>
* regulator: Remove max_uV from struct regulator_linear_rangeAxel Lin2013-10-111-1/+5
| | | | | | | | | linear ranges means each range has linear voltage settings. So we can calculate max_uV for each linear range in regulator core rather than set the max_uV field in drivers. Signed-off-by: Axel Lin <axel.lin@ingics.com> Signed-off-by: Mark Brown <broonie@linaro.org>
* regulator: core: Move list_voltage_{linear,linear_range,table} to helpers.cAxel Lin2013-08-091-0/+86
| | | | | | | | Move regulator_list_voltage_{linear,linear_range,table} helper functions to helpers.c. Signed-off-by: Axel Lin <axel.lin@ingics.com> Signed-off-by: Mark Brown <broonie@linaro.org>
* regulator: core: Move helpers for drivers out into a separate fileMark Brown2013-08-071-0/+361
Reduce the size of core.c a bit. Signed-off-by: Mark Brown <broonie@linaro.org>
OpenPOWER on IntegriCloud