regulator: s5m8767: Implement voltage setting for BUCK7/8 regulators
authorKrzysztof Kozlowski <k.kozlowski@samsung.com>
Tue, 10 Dec 2013 09:09:43 +0000 (10:09 +0100)
committerMark Brown <broonie@linaro.org>
Wed, 11 Dec 2013 22:48:54 +0000 (22:48 +0000)
commit463616ea3f4c4ff27019ffcf8f09a25712c1f4c1
tree306e095644ba25d622a4b7d1b88c605d431b8298
parent79b53d199b83a44811cd57091751ef122351ae85
regulator: s5m8767: Implement voltage setting for BUCK7/8 regulators

Voltage setting for BUCK7 and BUCK8 was not supported by s5m8767 driver.
If they were configured in DTS then the driver probing would fail with
EINVAL:
[    0.288474] VCC_SUB_1.35V: failed to apply 1350000uV constraint
[    0.288671] s5m8767-pmic s5m8767-pmic: regulator init failed for 35
[    0.294931] s5m8767-pmic: probe of s5m8767-pmic failed with error -22

This patch adds support for BUCK7 and BUCK8 regulators using standard
regmap get/set voltage sel functions.

Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Reviewed-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/regulator/s5m8767.c