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

gpiolib: include gpio/consumer.h in of_gpio.h for desc_to_gpio()

Fixes this build error on sparc:

In file included from drivers/spi/spi.c:33:0:
include/linux/of_gpio.h: In function 'of_get_named_gpio_flags':
include/linux/of_gpio.h:93:3: error: implicit declaration of function 'desc_to_gpio' [-Werror=implicit-function-declaration]

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

authored by

Stephen Rothwell and committed by
Linus Walleij
335d7a7d 403c1d0b

+1 -1
+1 -1
include/linux/of_gpio.h
··· 19 19 #include <linux/errno.h> 20 20 #include <linux/gpio.h> 21 21 #include <linux/of.h> 22 + #include <linux/gpio/consumer.h> 22 23 23 24 struct device_node; 24 - struct gpio_desc; 25 25 26 26 /* 27 27 * This is Linux-specific flags. By default controllers' and Linux' mapping