From: Linus Walleij Date: Tue, 6 Nov 2012 13:49:39 +0000 (+0100) Subject: gpiolib: fix up function prototypes etc X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~94^2~47 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=165adc9c1734a3f3bdbc6dc7c7a29bbefb424006;p=pandora-kernel.git 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 (previously the actual prototypes were declared here...) - Declare the gpiochip_add_pin_range() and gpiochip_remove_pin_ranges() functions in 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. Reviewed-by: Stephen Warren Signed-off-by: Linus Walleij --- Reading git-diff-tree failed