Commit 2a60f598 authored by Dmitry Torokhov's avatar Dmitry Torokhov

Input: gpio_keys - switch to using devm_fwnode_gpiod_get()

devm_fwnode_get_gpiod_from_child() is going away as the name is too
unwieldy, let's switch to using the new devm_fwnode_gpiod_get().
Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent e2c5af52
...@@ -494,10 +494,8 @@ static int gpio_keys_setup_key(struct platform_device *pdev, ...@@ -494,10 +494,8 @@ static int gpio_keys_setup_key(struct platform_device *pdev,
spin_lock_init(&bdata->lock); spin_lock_init(&bdata->lock);
if (child) { if (child) {
bdata->gpiod = devm_fwnode_get_gpiod_from_child(dev, NULL, bdata->gpiod = devm_fwnode_gpiod_get(dev, child,
child, NULL, GPIOD_IN, desc);
GPIOD_IN,
desc);
if (IS_ERR(bdata->gpiod)) { if (IS_ERR(bdata->gpiod)) {
error = PTR_ERR(bdata->gpiod); error = PTR_ERR(bdata->gpiod);
if (error == -ENOENT) { if (error == -ENOENT) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment