diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2013-03-19 02:31:17 -0400 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2013-04-09 03:52:57 -0400 |
commit | 9c4154ef762534d10ef042fcf1c945105b46f660 (patch) | |
tree | d985db62ee6538b20a141f6baba79c61a2263eb5 /drivers/pinctrl/pinctrl-abx500.c | |
parent | 61dd726131777017348b70bd8576b42994a8ffa2 (diff) |
pinctrl: abx500: Staticize some symbols
These symbols are used only in this file. Without this patch
we get the following warnings:
drivers/pinctrl/pinctrl-abx500.c:520:5: warning:
symbol 'abx500_gpio_request' was not declared. Should it be static?
drivers/pinctrl/pinctrl-abx500.c:527:6: warning:
symbol 'abx500_gpio_free' was not declared. Should it be static?
drivers/pinctrl/pinctrl-abx500.c:614:5: warning:
symbol 'abx500_gpio_request_enable' was not declared. Should it be static?
drivers/pinctrl/pinctrl-abx500.c:714:5: warning:
symbol 'abx500_pin_config_get' was not declared. Should it be static?
drivers/pinctrl/pinctrl-abx500.c:721:5: warning:
symbol 'abx500_pin_config_set' was not declared. Should it be static?
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Acked-by: Patrice Chotard <patrice.chotard@st.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/pinctrl-abx500.c')
-rw-r--r-- | drivers/pinctrl/pinctrl-abx500.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/pinctrl/pinctrl-abx500.c b/drivers/pinctrl/pinctrl-abx500.c index 0cf3fa4a21ae..9b8db91c390f 100644 --- a/drivers/pinctrl/pinctrl-abx500.c +++ b/drivers/pinctrl/pinctrl-abx500.c | |||
@@ -517,14 +517,14 @@ static inline void abx500_gpio_dbg_show_one(struct seq_file *s, | |||
517 | #define abx500_gpio_dbg_show NULL | 517 | #define abx500_gpio_dbg_show NULL |
518 | #endif | 518 | #endif |
519 | 519 | ||
520 | int abx500_gpio_request(struct gpio_chip *chip, unsigned offset) | 520 | static int abx500_gpio_request(struct gpio_chip *chip, unsigned offset) |
521 | { | 521 | { |
522 | int gpio = chip->base + offset; | 522 | int gpio = chip->base + offset; |
523 | 523 | ||
524 | return pinctrl_request_gpio(gpio); | 524 | return pinctrl_request_gpio(gpio); |
525 | } | 525 | } |
526 | 526 | ||
527 | void abx500_gpio_free(struct gpio_chip *chip, unsigned offset) | 527 | static void abx500_gpio_free(struct gpio_chip *chip, unsigned offset) |
528 | { | 528 | { |
529 | int gpio = chip->base + offset; | 529 | int gpio = chip->base + offset; |
530 | 530 | ||
@@ -611,7 +611,7 @@ static void abx500_pmx_disable(struct pinctrl_dev *pctldev, | |||
611 | dev_dbg(pct->dev, "disable group %s, %u pins\n", g->name, g->npins); | 611 | dev_dbg(pct->dev, "disable group %s, %u pins\n", g->name, g->npins); |
612 | } | 612 | } |
613 | 613 | ||
614 | int abx500_gpio_request_enable(struct pinctrl_dev *pctldev, | 614 | static int abx500_gpio_request_enable(struct pinctrl_dev *pctldev, |
615 | struct pinctrl_gpio_range *range, | 615 | struct pinctrl_gpio_range *range, |
616 | unsigned offset) | 616 | unsigned offset) |
617 | { | 617 | { |
@@ -711,14 +711,14 @@ static const struct pinctrl_ops abx500_pinctrl_ops = { | |||
711 | .pin_dbg_show = abx500_pin_dbg_show, | 711 | .pin_dbg_show = abx500_pin_dbg_show, |
712 | }; | 712 | }; |
713 | 713 | ||
714 | int abx500_pin_config_get(struct pinctrl_dev *pctldev, | 714 | static int abx500_pin_config_get(struct pinctrl_dev *pctldev, |
715 | unsigned pin, | 715 | unsigned pin, |
716 | unsigned long *config) | 716 | unsigned long *config) |
717 | { | 717 | { |
718 | return -ENOSYS; | 718 | return -ENOSYS; |
719 | } | 719 | } |
720 | 720 | ||
721 | int abx500_pin_config_set(struct pinctrl_dev *pctldev, | 721 | static int abx500_pin_config_set(struct pinctrl_dev *pctldev, |
722 | unsigned pin, | 722 | unsigned pin, |
723 | unsigned long config) | 723 | unsigned long config) |
724 | { | 724 | { |