]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
watchdog: bd9576_wdt: switch to using devm_fwnode_gpiod_get()
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 5 Sep 2022 06:31:02 +0000 (23:31 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 16 Jun 2024 11:39:38 +0000 (13:39 +0200)
commita87a838c6835dad72254b38bed7143bd8ef3c61d
treee2ab2e600381d1d55cf18addd64fefb082849bce
parent0a1c804cf25074771e45477ace07ab6050a0c164
watchdog: bd9576_wdt: switch to using devm_fwnode_gpiod_get()

[ Upstream commit 4f719022a753bb15720c9ddeb0387a93caa372ce ]

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
bd9576_wdt_probe() to the generic device property API as well.

Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20220903-gpiod_get_from_of_node-remove-v1-10-b29adfb27a6c@gmail.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
Stable-dep-of: e3b3afd34d84 ("watchdog: bd9576: Drop "always-running" property")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/watchdog/bd9576_wdt.c