regulator: tps65132: switch to using devm_fwnode_gpiod_get()
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 4 Oct 2019 23:10:16 +0000 (16:10 -0700)
committerMark Brown <broonie@kernel.org>
Mon, 7 Oct 2019 13:02:16 +0000 (14:02 +0100)
commit22803ca3c56b02e5bb8a4eb14104114009fd1c65
tree6707003e959aa27b6a7ea2f839490f3bf07d32e3
parent61d2fc3cf8f557193c8c362ea75f06fa5a0abcfe
regulator: tps65132: switch to using devm_fwnode_gpiod_get()

devm_fwnode_get_index_gpiod_from_child() is going away as the name is
too unwieldy, let's switch to using the new devm_fwnode_gpiod_get().

Note that we no longer need to check for NULL as devm_fwnode_gpiod_get()
will return -ENOENT if GPIO is missing.

Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Link: https://lore.kernel.org/r/20191004231017.130290-7-dmitry.torokhov@gmail.com
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/tps65132-regulator.c