gpiolib: of: Reshuffle contents of consumer.h for new library layout
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 30 Jul 2019 10:43:35 +0000 (13:43 +0300)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 30 Jul 2019 22:55:47 +0000 (00:55 +0200)
commitfce04b1ce8e326bf2cafaea4a0c91dbc3e99e403
treef5ab76464cbbcad3a81eabfe6432d9222db63b4e
parenta299726da44fd679ce805aa80d7d6b559bac9874
gpiolib: of: Reshuffle contents of consumer.h for new library layout

Kernel build bot reported a compilation error after the commit

  f626d6dfb709 ("gpio: of: Break out OF-only code"):

drivers/gpio/gpiolib-devres.o: In function `devm_gpiod_get_from_of_node':
gpiolib-devres.c:(.text+0x19a): undefined reference to `gpiod_get_from_of_node'

This happens due to move the latter under umbrella of CONFIG_OF_GPIO while
customer.h contains staled data.

Fix it by reshuffling contents of consumer.h to satisfy build dependencies.

Reported-by: kbuild test robot <lkp@intel.com>
Fixes: f626d6dfb709 ("gpio: of: Break out OF-only code"):
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20190730104337.21235-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
include/linux/gpio/consumer.h