diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2018-05-14 10:06:31 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2018-05-17 15:43:27 +0900 |
commit | 0369e02b75e6381f892e3bd45f1d8d6330d855fb (patch) | |
tree | 09cfdb3683e450cdacb304cb000a649d81e31ea7 /drivers/regulator/core.c | |
parent | c89c00e2b8f034891d2550df5ba6fae39f3bf563 (diff) | |
download | lwn-0369e02b75e6381f892e3bd45f1d8d6330d855fb.tar.gz lwn-0369e02b75e6381f892e3bd45f1d8d6330d855fb.zip |
regulator: s2mps11: Pass descriptor instead of GPIO number
Instead of passing a global GPIO number for the enable GPIO, pass
a descriptor looked up with the standard devm_gpiod_get_optional()
call.
This regulator supports passing platform data, but enable/sleep
regulators are looked up from the device tree exclusively, so
we can need not touch other files.
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org>
Tested-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/regulator/core.c')
0 files changed, 0 insertions, 0 deletions