mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-10 07:00:48 +00:00
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: Dmitry Torokhov <dmitry.torokhov@gmail.com>
This commit is contained in:
parent
e2c5af528a
commit
2a60f59877
@ -494,10 +494,8 @@ static int gpio_keys_setup_key(struct platform_device *pdev,
|
||||
spin_lock_init(&bdata->lock);
|
||||
|
||||
if (child) {
|
||||
bdata->gpiod = devm_fwnode_get_gpiod_from_child(dev, NULL,
|
||||
child,
|
||||
GPIOD_IN,
|
||||
desc);
|
||||
bdata->gpiod = devm_fwnode_gpiod_get(dev, child,
|
||||
NULL, GPIOD_IN, desc);
|
||||
if (IS_ERR(bdata->gpiod)) {
|
||||
error = PTR_ERR(bdata->gpiod);
|
||||
if (error == -ENOENT) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user