asm-generic/gpio.h: add some forward decls of the device struct
authorMike Frysinger <vapier@gentoo.org>
Wed, 9 Dec 2009 11:53:39 +0000 (06:53 -0500)
committerArnd Bergmann <arnd@arndb.de>
Thu, 10 Dec 2009 21:18:33 +0000 (22:18 +0100)
commit1f018c8d0d30bd6cc704104cfc50f2e5eee4e2dd
tree84795bbbba73ed57b073958e0000f144a570abc3
parent4029a91f0c82ae16e5b10b36da51c470895deedf
asm-generic/gpio.h: add some forward decls of the device struct

After the recent commit a4177ee7f, attempting to include asm-generic/gpio.h
in otherwise "slim" code results in ugly warnings like so:

CC arch/blackfin/kernel/bfin_gpio.o
In file included from arch/blackfin/include/asm/gpio.h:278,
                 from arch/blackfin/kernel/bfin_gpio.c:15:
include/asm-generic/gpio.h:193: warning:
‘struct device’ declared inside parameter list
its scope is only this definition or declaration, which is probably not what you want

So add simple C forward decls of the struct device to avoid these.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
include/asm-generic/gpio.h