diff options
author | Dmitry Torokhov <[email protected]> | 2019-10-04 16:10:12 -0700 |
---|---|---|
committer | Mark Brown <[email protected]> | 2019-10-07 14:01:56 +0100 |
commit | de2cd1a552673f370f8ea39a0241f764fbcf39e5 (patch) | |
tree | fda2602c1f625d40ab3751f06124a80048dba738 /scripts/gdb/linux/modules.py | |
parent | 5be0e549e18f8ad7efa81b3e054ca094b7782f55 (diff) |
regulator: slg51000: switch to using fwnode_gpiod_get_index
devm_gpiod_get_from_of_node() is being retired in favor of
[devm_]fwnode_gpiod_get_index(), that behaves similar to
devm_gpiod_get_index(), but can work with arbitrary firmware node. It
will also be able to support secondary software nodes.
Let's switch this driver over.
Note that now that we have a good non-devm API for getting GPIO from
arbitrary firmware node, there is no reason to use devm API here as
regulator core takes care of managing lifetime of "enable" GPIO and we
were immediately detaching requested GPIO from devm anyway.
Signed-off-by: Dmitry Torokhov <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Linus Walleij <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/modules.py')
0 files changed, 0 insertions, 0 deletions