They are not referenced outside of this file, make them static.
Unified · Split
| @@ -1286,8 +1286,8 @@ void nmk_gpio_read_pull(int gpio_bank, u32 *pull_up) · 1285 unmodified lines | |||
| 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, · 377 unmodified lines | |||
| 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, · 22 unmodified lines | |||
| 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 = { · 11 unmodified lines | |||
| 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", |