diff options
author | Axel Lin <axel.lin@ingics.com> | 2012-11-15 11:01:35 -0500 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2012-11-15 12:33:31 -0500 |
commit | 5212d096cbed2eae1e442b3f8bf448e6a577af6f (patch) | |
tree | a6b3f86cdbeca65d7f533cf3a15aebeb8d7f0450 /drivers/pinctrl | |
parent | 953e9e93862871e005bdcde3b98db822d12185a8 (diff) |
pinctrl: nomadik: Staticize non-exported symbols
They are not referenced outside of this file, make them static.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl')
-rw-r--r-- | drivers/pinctrl/pinctrl-nomadik.c | 26 |
1 files changed, 12 insertions, 14 deletions
diff --git a/drivers/pinctrl/pinctrl-nomadik.c b/drivers/pinctrl/pinctrl-nomadik.c index 98c088ae7f4a..8ef3e85cb011 100644 --- a/drivers/pinctrl/pinctrl-nomadik.c +++ b/drivers/pinctrl/pinctrl-nomadik.c | |||
@@ -1286,8 +1286,8 @@ void nmk_gpio_read_pull(int gpio_bank, u32 *pull_up) | |||
1286 | } | 1286 | } |
1287 | } | 1287 | } |
1288 | 1288 | ||
1289 | int nmk_gpio_irq_map(struct irq_domain *d, unsigned int irq, | 1289 | static int nmk_gpio_irq_map(struct irq_domain *d, unsigned int irq, |
1290 | irq_hw_number_t hwirq) | 1290 | irq_hw_number_t hwirq) |
1291 | { | 1291 | { |
1292 | struct nmk_gpio_chip *nmk_chip = d->host_data; | 1292 | struct nmk_gpio_chip *nmk_chip = d->host_data; |
1293 | 1293 | ||
@@ -1671,9 +1671,9 @@ static void nmk_pmx_disable(struct pinctrl_dev *pctldev, | |||
1671 | dev_dbg(npct->dev, "disable group %s, %u pins\n", g->name, g->npins); | 1671 | dev_dbg(npct->dev, "disable group %s, %u pins\n", g->name, g->npins); |
1672 | } | 1672 | } |
1673 | 1673 | ||
1674 | int nmk_gpio_request_enable(struct pinctrl_dev *pctldev, | 1674 | static int nmk_gpio_request_enable(struct pinctrl_dev *pctldev, |
1675 | struct pinctrl_gpio_range *range, | 1675 | struct pinctrl_gpio_range *range, |
1676 | unsigned offset) | 1676 | unsigned offset) |
1677 | { | 1677 | { |
1678 | struct nmk_pinctrl *npct = pinctrl_dev_get_drvdata(pctldev); | 1678 | struct nmk_pinctrl *npct = pinctrl_dev_get_drvdata(pctldev); |
1679 | struct nmk_gpio_chip *nmk_chip; | 1679 | struct nmk_gpio_chip *nmk_chip; |
@@ -1702,9 +1702,9 @@ int nmk_gpio_request_enable(struct pinctrl_dev *pctldev, | |||
1702 | return 0; | 1702 | return 0; |
1703 | } | 1703 | } |
1704 | 1704 | ||
1705 | void nmk_gpio_disable_free(struct pinctrl_dev *pctldev, | 1705 | static void nmk_gpio_disable_free(struct pinctrl_dev *pctldev, |
1706 | struct pinctrl_gpio_range *range, | 1706 | struct pinctrl_gpio_range *range, |
1707 | unsigned offset) | 1707 | unsigned offset) |
1708 | { | 1708 | { |
1709 | struct nmk_pinctrl *npct = pinctrl_dev_get_drvdata(pctldev); | 1709 | struct nmk_pinctrl *npct = pinctrl_dev_get_drvdata(pctldev); |
1710 | 1710 | ||
@@ -1722,17 +1722,15 @@ static struct pinmux_ops nmk_pinmux_ops = { | |||
1722 | .gpio_disable_free = nmk_gpio_disable_free, | 1722 | .gpio_disable_free = nmk_gpio_disable_free, |
1723 | }; | 1723 | }; |
1724 | 1724 | ||
1725 | int nmk_pin_config_get(struct pinctrl_dev *pctldev, | 1725 | static int nmk_pin_config_get(struct pinctrl_dev *pctldev, unsigned pin, |
1726 | unsigned pin, | 1726 | unsigned long *config) |
1727 | unsigned long *config) | ||
1728 | { | 1727 | { |
1729 | /* Not implemented */ | 1728 | /* Not implemented */ |
1730 | return -EINVAL; | 1729 | return -EINVAL; |
1731 | } | 1730 | } |
1732 | 1731 | ||
1733 | int nmk_pin_config_set(struct pinctrl_dev *pctldev, | 1732 | static int nmk_pin_config_set(struct pinctrl_dev *pctldev, unsigned pin, |
1734 | unsigned pin, | 1733 | unsigned long config) |
1735 | unsigned long config) | ||
1736 | { | 1734 | { |
1737 | static const char *pullnames[] = { | 1735 | static const char *pullnames[] = { |
1738 | [NMK_GPIO_PULL_NONE] = "none", | 1736 | [NMK_GPIO_PULL_NONE] = "none", |