]> git.karo-electronics.de Git - karo-tx-linux.git/commit
gpiolib: fix up function prototypes etc
authorLinus Walleij <linus.walleij@linaro.org>
Tue, 6 Nov 2012 13:49:39 +0000 (14:49 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 6 Nov 2012 13:55:26 +0000 (14:55 +0100)
commit595679a8038584df7b9398bf34f61db3c038bfea
tree726cbe5f5a55534dd4f1483a42b4d9f8125f8764
parentb3d574ba644c48e7f078a8949f292a84b2754d93
gpiolib: fix up function prototypes etc

Commit 69e1601bca88809dc118abd1becb02c15a02ec71
"gpiolib: provide provision to register pin ranges"

Got most of it's function prototypes wrong, so fix this up by:

- Moving the void declarations into static inlines in
  <linux/gpio.h> (previously the actual prototypes were declared
  here...)

- Declare the gpiochip_add_pin_range() and
  gpiochip_remove_pin_ranges() functions in <asm-generic/gpio.h>
  together with the pin range struct declaration itself.

- Actually only implement these very functions in gpiolib.c
  if CONFIG_PINCTRL is set.

- Additionally export the symbols since modules will need to
  be able to do this.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpiolib.c
include/asm-generic/gpio.h
include/linux/gpio.h