diff options
author | Laxman Dewangan <ldewangan@nvidia.com> | 2013-09-10 15:45:05 +0530 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-09-10 18:19:52 +0100 |
commit | 5a523605afa7d3b54b2e7041f8c9e6bc39872a7e (patch) | |
tree | bb8b579e660754e37ae11b68f11085d12dff7c71 /drivers/regulator/fixed.c | |
parent | a584862221426f461f56674d30fe0d712ee63d00 (diff) |
regulator: core: provide fixed voltage in desc for single voltage rail
If given rail has the single voltage (n_voltages = 1) then provide the
rail voltage through regulator descriptor so that core can use this
value for finding voltage.
This will avoid the implementation of the callback for get_voltage() or
list_voltage() callback on regulator driver.
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'drivers/regulator/fixed.c')
0 files changed, 0 insertions, 0 deletions