Skip to content

Commit 315c46f

Browse files
author
Bartosz Golaszewski
committed
treewide: rename pinctrl_gpio_direction_input_new()
Now that pinctrl_gpio_direction_input() is no longer used, let's drop the '_new' suffix from its improved variant. Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> Acked-by: Linus Walleij <linus.walleij@linaro.org>
1 parent 4fccb26 commit 315c46f

26 files changed

Lines changed: 30 additions & 30 deletions

drivers/gpio/gpio-mvebu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ static int mvebu_gpio_direction_input(struct gpio_chip *chip, unsigned int pin)
346346
* Check with the pinctrl driver whether this pin is usable as
347347
* an input GPIO
348348
*/
349-
ret = pinctrl_gpio_direction_input_new(chip, pin);
349+
ret = pinctrl_gpio_direction_input(chip, pin);
350350
if (ret)
351351
return ret;
352352

drivers/gpio/gpio-pxa.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ static int pxa_gpio_direction_input(struct gpio_chip *chip, unsigned offset)
260260
int ret;
261261

262262
if (pxa_gpio_has_pinctrl()) {
263-
ret = pinctrl_gpio_direction_input_new(chip, offset);
263+
ret = pinctrl_gpio_direction_input(chip, offset);
264264
if (ret)
265265
return ret;
266266
}

drivers/gpio/gpio-rockchip.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ static int rockchip_gpio_set_direction(struct gpio_chip *chip,
159159

160160

161161
if (input)
162-
pinctrl_gpio_direction_input_new(chip, offset);
162+
pinctrl_gpio_direction_input(chip, offset);
163163
else
164164
pinctrl_gpio_direction_output_new(chip, offset);
165165

drivers/gpio/gpio-tegra.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ static int tegra_gpio_direction_input(struct gpio_chip *chip,
179179
tegra_gpio_mask_write(tgi, GPIO_MSK_OE(tgi, offset), offset, 0);
180180
tegra_gpio_enable(tgi, offset);
181181

182-
ret = pinctrl_gpio_direction_input_new(chip, offset);
182+
ret = pinctrl_gpio_direction_input(chip, offset);
183183
if (ret < 0)
184184
dev_err(tgi->dev,
185185
"Failed to set pinctrl input direction of GPIO %d: %d",

drivers/gpio/gpio-vf610.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ static int vf610_gpio_direction_input(struct gpio_chip *chip, unsigned gpio)
130130
vf610_gpio_writel(val, port->gpio_base + GPIO_PDDR);
131131
}
132132

133-
return pinctrl_gpio_direction_input_new(chip, gpio);
133+
return pinctrl_gpio_direction_input(chip, gpio);
134134
}
135135

136136
static int vf610_gpio_direction_output(struct gpio_chip *chip, unsigned gpio,

drivers/pinctrl/cirrus/pinctrl-cs42l43.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,7 @@ static void cs42l43_gpio_set(struct gpio_chip *chip, unsigned int offset, int va
508508

509509
static int cs42l43_gpio_direction_in(struct gpio_chip *chip, unsigned int offset)
510510
{
511-
return pinctrl_gpio_direction_input_new(chip, offset);
511+
return pinctrl_gpio_direction_input(chip, offset);
512512
}
513513

514514
static int cs42l43_gpio_direction_out(struct gpio_chip *chip,

drivers/pinctrl/core.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -874,19 +874,19 @@ static int pinctrl_gpio_direction(unsigned gpio, bool input)
874874
}
875875

876876
/**
877-
* pinctrl_gpio_direction_input_new() - request a GPIO pin to go into input mode
877+
* pinctrl_gpio_direction_input() - request a GPIO pin to go into input mode
878878
* @gc: GPIO chip structure from the GPIO subsystem
879879
* @offset: hardware offset of the GPIO relative to the controller
880880
*
881881
* This function should *ONLY* be used from gpiolib-based GPIO drivers,
882882
* as part of their gpio_direction_input() semantics, platforms and individual
883883
* drivers shall *NOT* touch pin control GPIO calls.
884884
*/
885-
int pinctrl_gpio_direction_input_new(struct gpio_chip *gc, unsigned int offset)
885+
int pinctrl_gpio_direction_input(struct gpio_chip *gc, unsigned int offset)
886886
{
887887
return pinctrl_gpio_direction(gc->base + offset, true);
888888
}
889-
EXPORT_SYMBOL_GPL(pinctrl_gpio_direction_input_new);
889+
EXPORT_SYMBOL_GPL(pinctrl_gpio_direction_input);
890890

891891
/**
892892
* pinctrl_gpio_direction_output_new() - request a GPIO pin to go into output

drivers/pinctrl/intel/pinctrl-cherryview.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1148,7 +1148,7 @@ static int chv_gpio_get_direction(struct gpio_chip *chip, unsigned int offset)
11481148

11491149
static int chv_gpio_direction_input(struct gpio_chip *chip, unsigned int offset)
11501150
{
1151-
return pinctrl_gpio_direction_input_new(chip, offset);
1151+
return pinctrl_gpio_direction_input(chip, offset);
11521152
}
11531153

11541154
static int chv_gpio_direction_output(struct gpio_chip *chip, unsigned int offset,

drivers/pinctrl/intel/pinctrl-intel.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -992,7 +992,7 @@ static int intel_gpio_get_direction(struct gpio_chip *chip, unsigned int offset)
992992

993993
static int intel_gpio_direction_input(struct gpio_chip *chip, unsigned int offset)
994994
{
995-
return pinctrl_gpio_direction_input_new(chip, offset);
995+
return pinctrl_gpio_direction_input(chip, offset);
996996
}
997997

998998
static int intel_gpio_direction_output(struct gpio_chip *chip, unsigned int offset,

drivers/pinctrl/intel/pinctrl-lynxpoint.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,7 @@ static void lp_gpio_set(struct gpio_chip *chip, unsigned int offset, int value)
541541

542542
static int lp_gpio_direction_input(struct gpio_chip *chip, unsigned int offset)
543543
{
544-
return pinctrl_gpio_direction_input_new(chip, offset);
544+
return pinctrl_gpio_direction_input(chip, offset);
545545
}
546546

547547
static int lp_gpio_direction_output(struct gpio_chip *chip, unsigned int offset,

0 commit comments

Comments
 (0)