Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Sachin Kamat and committed by
Linus Walleij
9c4154ef 61dd7261

+5 -5
+5 -5
drivers/pinctrl/pinctrl-abx500.c
··· 517 517 #define abx500_gpio_dbg_show NULL 518 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 522 int gpio = chip->base + offset; 523 523 524 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 529 int gpio = chip->base + offset; 530 530 ··· 611 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 615 struct pinctrl_gpio_range *range, 616 616 unsigned offset) 617 617 { ··· 711 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 715 unsigned pin, 716 716 unsigned long *config) 717 717 { 718 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 722 unsigned pin, 723 723 unsigned long config) 724 724 {