OSDN Git Service

gpio: Rework of_gpiochip_set_names() to use device property accessors
authorMika Westerberg <mika.westerberg@linux.intel.com>
Fri, 21 Oct 2016 14:21:31 +0000 (17:21 +0300)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 24 Oct 2016 14:33:11 +0000 (16:33 +0200)
commit9427ecbed46cc8425338084ae42ce8749566586f
treec5074390bd405e3e28277df09f600ea0a78ecd09
parentc80f1ba75df25837fb76044e06686b6587d33f6a
gpio: Rework of_gpiochip_set_names() to use device property accessors

In order to use "gpio-line-names" property in systems not having DT as
their boot firmware, rework of_gpiochip_set_names() to use device property
accessors. This reworked function is placed in a separate file making it
clear it deals with universal device properties.

Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/Makefile
drivers/gpio/gpiolib-devprop.c [new file with mode: 0644]
drivers/gpio/gpiolib-of.c
drivers/gpio/gpiolib.h