Skip to content

Commit 5835b3f

Browse files
author
Bartosz Golaszewski
committed
pinctrl: rk805: drop the wrapper around pinctrl_gpio_direction_input()
pinctrl_gpio_direction_input() now has the same signature as the wrapper around it so we can drop them. Signed-off-by: Bartosz Golaszewski <[email protected]> Acked-by: Linus Walleij <[email protected]>
1 parent 36077c8 commit 5835b3f

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

drivers/pinctrl/pinctrl-rk805.c

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -286,12 +286,6 @@ static void rk805_gpio_set(struct gpio_chip *chip,
286286
offset, value);
287287
}
288288

289-
static int rk805_gpio_direction_input(struct gpio_chip *chip,
290-
unsigned int offset)
291-
{
292-
return pinctrl_gpio_direction_input(chip, offset);
293-
}
294-
295289
static int rk805_gpio_direction_output(struct gpio_chip *chip,
296290
unsigned int offset, int value)
297291
{
@@ -330,7 +324,7 @@ static const struct gpio_chip rk805_gpio_chip = {
330324
.get_direction = rk805_gpio_get_direction,
331325
.get = rk805_gpio_get,
332326
.set = rk805_gpio_set,
333-
.direction_input = rk805_gpio_direction_input,
327+
.direction_input = pinctrl_gpio_direction_input,
334328
.direction_output = rk805_gpio_direction_output,
335329
.can_sleep = true,
336330
.base = -1,

0 commit comments

Comments
 (0)