OSDN Git Service

gpio: of: Break out OF-only code
authorLinus Walleij <linus.walleij@linaro.org>
Wed, 17 Jul 2019 07:10:01 +0000 (09:10 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Sun, 28 Jul 2019 21:07:59 +0000 (23:07 +0200)
commitf626d6dfb709852595e6fb24710819f9d21bc5ae
tree07f3db09c8062e7f228b5b49cddffa229c1b8570
parentf8650b8ff6fd96075391e72bb3b6d0a99f27829d
gpio: of: Break out OF-only code

The core gpiolib should not contain any OF/device tree-only
code. Try to break out the main part of it and push it down
into the optional gpiolib-of.c part of the library.

Create a local gpiolib-of.h header and move stuff around a
bit to get a clean cut.

Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20190717071001.3858-1-linus.walleij@linaro.org
drivers/gpio/gpiolib-of.c
drivers/gpio/gpiolib-of.h [new file with mode: 0644]
drivers/gpio/gpiolib.c
drivers/gpio/gpiolib.h