Skip to content

Commit

Permalink
gpiolib: provide a declaration of seq_file in gpio/driver.h
Browse files Browse the repository at this point in the history
Fixes this build error:

In file included from include/asm-generic/gpio.h:13:0,
                 from include/linux/gpio.h:51,
                 from include/linux/of_gpio.h:20,
                 from arch/powerpc/sysdev/ppc4xx_gpio.c:29:
include/linux/gpio/driver.h:85:14: error: 'struct seq_file' declared inside=
 parameter list [-Werror]
include/linux/gpio/driver.h:85:14: error: its scope is only this definition=
 or declaration, which is probably not what you want [-Werror]

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
  • Loading branch information
Stephen Rothwell authored and Linus Walleij committed Oct 30, 2013
1 parent 335d7a7 commit f3ed0b6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions include/linux/gpio/driver.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

struct device;
struct gpio_desc;
struct seq_file;

/**
* struct gpio_chip - abstract a GPIO controller
Expand Down

0 comments on commit f3ed0b6

Please sign in to comment.