diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2012-11-06 08:58:55 -0500 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2012-11-11 13:06:05 -0500 |
commit | 167c1af9443757bb9d27ceff8ba4304302cb0651 (patch) | |
tree | b10c88418b1591b106b91920a5ff892fefe003e6 /drivers/gpio | |
parent | 165adc9c1734a3f3bdbc6dc7c7a29bbefb424006 (diff) |
gpiolib-of: staticize the pin range calls
Commit 69e1601bca88809dc118abd1becb02c15a02ec71
"gpiolib: provide provision to register pin ranges"
Declared the of_gpiochip_[add|remove]_pin_range() global
while they should be static as they are only ever used in
this file. Let's convert them to static.
Reviewed-by: Stephen Warren <swarren@nvidia.com>
Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpio')
-rw-r--r-- | drivers/gpio/gpiolib-of.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/gpio/gpiolib-of.c b/drivers/gpio/gpiolib-of.c index a5b90c8e9844..220caa5978f7 100644 --- a/drivers/gpio/gpiolib-of.c +++ b/drivers/gpio/gpiolib-of.c | |||
@@ -218,7 +218,7 @@ err0: | |||
218 | EXPORT_SYMBOL(of_mm_gpiochip_add); | 218 | EXPORT_SYMBOL(of_mm_gpiochip_add); |
219 | 219 | ||
220 | #ifdef CONFIG_PINCTRL | 220 | #ifdef CONFIG_PINCTRL |
221 | void of_gpiochip_add_pin_range(struct gpio_chip *chip) | 221 | static void of_gpiochip_add_pin_range(struct gpio_chip *chip) |
222 | { | 222 | { |
223 | struct device_node *np = chip->of_node; | 223 | struct device_node *np = chip->of_node; |
224 | struct gpio_pin_range *pin_range; | 224 | struct gpio_pin_range *pin_range; |
@@ -254,7 +254,7 @@ void of_gpiochip_add_pin_range(struct gpio_chip *chip) | |||
254 | } while (index++); | 254 | } while (index++); |
255 | } | 255 | } |
256 | 256 | ||
257 | void of_gpiochip_remove_pin_range(struct gpio_chip *chip) | 257 | static void of_gpiochip_remove_pin_range(struct gpio_chip *chip) |
258 | { | 258 | { |
259 | struct gpio_pin_range *pin_range, *tmp; | 259 | struct gpio_pin_range *pin_range, *tmp; |
260 | 260 | ||
@@ -265,8 +265,8 @@ void of_gpiochip_remove_pin_range(struct gpio_chip *chip) | |||
265 | } | 265 | } |
266 | } | 266 | } |
267 | #else | 267 | #else |
268 | void of_gpiochip_add_pin_range(struct gpio_chip *chip) {} | 268 | static void of_gpiochip_add_pin_range(struct gpio_chip *chip) {} |
269 | void of_gpiochip_remove_pin_range(struct gpio_chip *chip) {} | 269 | static void of_gpiochip_remove_pin_range(struct gpio_chip *chip) {} |
270 | #endif | 270 | #endif |
271 | 271 | ||
272 | void of_gpiochip_add(struct gpio_chip *chip) | 272 | void of_gpiochip_add(struct gpio_chip *chip) |