Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Input: gpio_keys_polled - 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>

+3 -4
+3 -4
drivers/input/keyboard/gpio_keys_polled.c
··· 300 300 return -EINVAL; 301 301 } 302 302 303 - bdata->gpiod = devm_fwnode_get_gpiod_from_child(dev, 304 - NULL, child, 305 - GPIOD_IN, 306 - button->desc); 303 + bdata->gpiod = devm_fwnode_gpiod_get(dev, child, 304 + NULL, GPIOD_IN, 305 + button->desc); 307 306 if (IS_ERR(bdata->gpiod)) { 308 307 error = PTR_ERR(bdata->gpiod); 309 308 if (error != -EPROBE_DEFER)