pinctrl: fix "warning: 'struct pinctrl_dev' declared inside parameter list"
authorBarry Song <Baohua.Song@csr.com>
Fri, 28 Oct 2011 03:38:24 +0000 (20:38 -0700)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 9 Nov 2011 14:07:40 +0000 (15:07 +0100)
commite0e20753c15fc418d94fee826af394907df856d8
treee503026776ba7e593f15f39c3c03999f1136d9bc
parent1ea6b8f48918282bdca0b32a34095504ee65bab5
pinctrl: fix "warning: 'struct pinctrl_dev' declared inside parameter list"

when pinctl subsystem is not selected, when compiling drivers including
the include/linux/pinctrl/pinctrl.h, we will get the warning as below:
In file included from include/linux/pinctrl/pinmux.h:17,
                 from drivers/tty/serial/sirfsoc_uart.c:25:
include/linux/pinctrl/pinctrl.h:126: warning: 'struct pinctrl_dev'
declared inside parameter list
include/linux/pinctrl/pinctrl.h:126: warning: its scope is only this
      definition or declaration, which is probably not what you want

Signed-off-by: Barry Song <Baohua.Song@csr.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
include/linux/pinctrl/pinctrl.h