regulator: bd9576: switch to using devm_fwnode_gpiod_get()
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 5 Sep 2022 06:31:01 +0000 (23:31 -0700)
committerMark Brown <broonie@kernel.org>
Mon, 5 Sep 2022 12:09:48 +0000 (13:09 +0100)
commit587bfe3f7a270f0a4076e624d318292324bdead8
tree718a87e73364ffbcbb126bcecdeb9f5016877c90
parent97c9278ec624a0d5d7c56aa20e16afc8aaa96557
regulator: bd9576: switch to using devm_fwnode_gpiod_get()

I would like to stop exporting OF-specific devm_gpiod_get_from_of_node()
so that gpiolib can be cleaned a bit, so let's switch to the generic
fwnode property API.

While at it switch the rest of the calls to read properties in
bd957x_probe() to the generic device property API as well.

Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Reviewed-by: Matti Vaittinen <mazziesaccount@gmail.com>
Link: https://lore.kernel.org/r/20220903-gpiod_get_from_of_node-remove-v1-9-b29adfb27a6c@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/bd9576-regulator.c