diff options
author | Jonas Gorski <jogo@openwrt.org> | 2015-10-11 11:34:19 -0400 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2015-10-16 16:20:21 -0400 |
commit | 98c85d583a5dee70d75faed3eb79851dd0a2e2fe (patch) | |
tree | b26dcc3d711d8531cc7011602eca7037723bd042 /drivers/pinctrl/vt8500 | |
parent | 31831f41bfd1e340bad66014a1b7ccd761ee51cf (diff) |
pinctrl: replace trivial implementations of gpio_chip request/free
Replace all trivial request/free callbacks that do nothing but call into
pinctrl code with the generic versions.
Signed-off-by: Jonas Gorski <jogo@openwrt.org>
Acked-by: Bjorn Andersson <bjorn.andersson@sonymobile.com>
Acked-by: Heiko Stuebner <heiko@sntech.de>
Acked-by: Eric Anholt <eric@anholt.net>
Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Acked-by: Andrew Bresticker <abrestic@chromium.org>
Acked-by: Baruch Siach <baruch@tkos.co.il>
Acked-by: Matthias Brugger <matthias.bgg@gmail.com>
Acked-by: Lee Jones <lee@kernel.org>
Acked-by: Laxman Dewangan <ldewangan@nvidia.com>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/vt8500')
-rw-r--r-- | drivers/pinctrl/vt8500/pinctrl-wmt.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/drivers/pinctrl/vt8500/pinctrl-wmt.c b/drivers/pinctrl/vt8500/pinctrl-wmt.c index c15316b003c5..fb22d3f62480 100644 --- a/drivers/pinctrl/vt8500/pinctrl-wmt.c +++ b/drivers/pinctrl/vt8500/pinctrl-wmt.c | |||
@@ -486,16 +486,6 @@ static struct pinctrl_desc wmt_desc = { | |||
486 | .confops = &wmt_pinconf_ops, | 486 | .confops = &wmt_pinconf_ops, |
487 | }; | 487 | }; |
488 | 488 | ||
489 | static int wmt_gpio_request(struct gpio_chip *chip, unsigned offset) | ||
490 | { | ||
491 | return pinctrl_request_gpio(chip->base + offset); | ||
492 | } | ||
493 | |||
494 | static void wmt_gpio_free(struct gpio_chip *chip, unsigned offset) | ||
495 | { | ||
496 | pinctrl_free_gpio(chip->base + offset); | ||
497 | } | ||
498 | |||
499 | static int wmt_gpio_get_direction(struct gpio_chip *chip, unsigned offset) | 489 | static int wmt_gpio_get_direction(struct gpio_chip *chip, unsigned offset) |
500 | { | 490 | { |
501 | struct wmt_pinctrl_data *data = dev_get_drvdata(chip->dev); | 491 | struct wmt_pinctrl_data *data = dev_get_drvdata(chip->dev); |
@@ -560,8 +550,8 @@ static int wmt_gpio_direction_output(struct gpio_chip *chip, unsigned offset, | |||
560 | static struct gpio_chip wmt_gpio_chip = { | 550 | static struct gpio_chip wmt_gpio_chip = { |
561 | .label = "gpio-wmt", | 551 | .label = "gpio-wmt", |
562 | .owner = THIS_MODULE, | 552 | .owner = THIS_MODULE, |
563 | .request = wmt_gpio_request, | 553 | .request = gpiochip_generic_request, |
564 | .free = wmt_gpio_free, | 554 | .free = gpiochip_generic_free, |
565 | .get_direction = wmt_gpio_get_direction, | 555 | .get_direction = wmt_gpio_get_direction, |
566 | .direction_input = wmt_gpio_direction_input, | 556 | .direction_input = wmt_gpio_direction_input, |
567 | .direction_output = wmt_gpio_direction_output, | 557 | .direction_output = wmt_gpio_direction_output, |