gpiolib: generalize devprop_gpiochip_set_names() for device properties
devprop_gpiochip_set_names() is overly complicated with taking the fwnode argument (which requires using dev_fwnode() & of_fwnode_handle() in ACPI and OF GPIO code respectively). Let's just switch to using the generic device properties. This allows us to pull the code setting line names directly into gpiochip_add_data_with_key() instead of handling it separately for ACPI and OF. Signed-off-by:Bartosz Golaszewski <bgolaszewski@baylibre.com> Reviewed-by:
Andy Shevchenko <andriy.shevchenko@linux.intel.com> Reviewed-by:
Mika Westerberg <mika.westerberg@linux.intel.com>
Showing
- drivers/gpio/gpiolib-acpi.c 0 additions, 3 deletionsdrivers/gpio/gpiolib-acpi.c
- drivers/gpio/gpiolib-devprop.c 10 additions, 10 deletionsdrivers/gpio/gpiolib-devprop.c
- drivers/gpio/gpiolib-of.c 0 additions, 5 deletionsdrivers/gpio/gpiolib-of.c
- drivers/gpio/gpiolib.c 4 additions, 4 deletionsdrivers/gpio/gpiolib.c
- include/linux/gpio/driver.h 1 addition, 2 deletionsinclude/linux/gpio/driver.h
Loading
Please register or sign in to comment