Skip to content

Commit b679d6c

Browse files
author
Bartosz Golaszewski
committed
treewide: rename pinctrl_gpio_direction_output_new()
Now that pinctrl_gpio_direction_output() 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 315c46f commit b679d6c

26 files changed

Lines changed: 31 additions & 32 deletions

drivers/gpio/gpio-mvebu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ static int mvebu_gpio_direction_output(struct gpio_chip *chip, unsigned int pin,
366366
* Check with the pinctrl driver whether this pin is usable as
367367
* an output GPIO
368368
*/
369-
ret = pinctrl_gpio_direction_output_new(chip, pin);
369+
ret = pinctrl_gpio_direction_output(chip, pin);
370370
if (ret)
371371
return ret;
372372

drivers/gpio/gpio-pxa.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ static int pxa_gpio_direction_output(struct gpio_chip *chip,
289289
writel_relaxed(mask, base + (value ? GPSR_OFFSET : GPCR_OFFSET));
290290

291291
if (pxa_gpio_has_pinctrl()) {
292-
ret = pinctrl_gpio_direction_output_new(chip, offset);
292+
ret = pinctrl_gpio_direction_output(chip, offset);
293293
if (ret)
294294
return ret;
295295
}

drivers/gpio/gpio-rockchip.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ static int rockchip_gpio_set_direction(struct gpio_chip *chip,
161161
if (input)
162162
pinctrl_gpio_direction_input(chip, offset);
163163
else
164-
pinctrl_gpio_direction_output_new(chip, offset);
164+
pinctrl_gpio_direction_output(chip, offset);
165165

166166
raw_spin_lock_irqsave(&bank->slock, flags);
167167
rockchip_gpio_writel_bit(bank, offset, data, bank->gpio_regs->port_ddr);

drivers/gpio/gpio-tegra.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ static int tegra_gpio_direction_output(struct gpio_chip *chip,
199199
tegra_gpio_mask_write(tgi, GPIO_MSK_OE(tgi, offset), offset, 1);
200200
tegra_gpio_enable(tgi, offset);
201201

202-
ret = pinctrl_gpio_direction_output_new(chip, offset);
202+
ret = pinctrl_gpio_direction_output(chip, offset);
203203
if (ret < 0)
204204
dev_err(tgi->dev,
205205
"Failed to set pinctrl output direction of GPIO %d: %d",

drivers/gpio/gpio-vf610.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ static int vf610_gpio_direction_output(struct gpio_chip *chip, unsigned gpio,
148148
vf610_gpio_writel(val, port->gpio_base + GPIO_PDDR);
149149
}
150150

151-
return pinctrl_gpio_direction_output_new(chip, gpio);
151+
return pinctrl_gpio_direction_output(chip, gpio);
152152
}
153153

154154
static void vf610_gpio_irq_handler(struct irq_desc *desc)

drivers/pinctrl/cirrus/pinctrl-cs42l43.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,7 @@ static int cs42l43_gpio_direction_out(struct gpio_chip *chip,
516516
{
517517
cs42l43_gpio_set(chip, offset, value);
518518

519-
return pinctrl_gpio_direction_output_new(chip, offset);
519+
return pinctrl_gpio_direction_output(chip, offset);
520520
}
521521

522522
static int cs42l43_gpio_add_pin_ranges(struct gpio_chip *chip)

drivers/pinctrl/cirrus/pinctrl-lochnagar.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1098,7 +1098,7 @@ static int lochnagar_gpio_direction_out(struct gpio_chip *chip,
10981098
{
10991099
lochnagar_gpio_set(chip, offset, value);
11001100

1101-
return pinctrl_gpio_direction_output_new(chip, offset);
1101+
return pinctrl_gpio_direction_output(chip, offset);
11021102
}
11031103

11041104
static int lochnagar_fill_func_groups(struct lochnagar_pin_priv *priv)

drivers/pinctrl/core.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -889,20 +889,19 @@ int pinctrl_gpio_direction_input(struct gpio_chip *gc, unsigned int offset)
889889
EXPORT_SYMBOL_GPL(pinctrl_gpio_direction_input);
890890

891891
/**
892-
* pinctrl_gpio_direction_output_new() - request a GPIO pin to go into output
893-
* mode
892+
* pinctrl_gpio_direction_output() - request a GPIO pin to go into output mode
894893
* @gc: GPIO chip structure from the GPIO subsystem
895894
* @offset: hardware offset of the GPIO relative to the controller
896895
*
897896
* This function should *ONLY* be used from gpiolib-based GPIO drivers,
898897
* as part of their gpio_direction_output() semantics, platforms and individual
899898
* drivers shall *NOT* touch pin control GPIO calls.
900899
*/
901-
int pinctrl_gpio_direction_output_new(struct gpio_chip *gc, unsigned int offset)
900+
int pinctrl_gpio_direction_output(struct gpio_chip *gc, unsigned int offset)
902901
{
903902
return pinctrl_gpio_direction(gc->base + offset, false);
904903
}
905-
EXPORT_SYMBOL_GPL(pinctrl_gpio_direction_output_new);
904+
EXPORT_SYMBOL_GPL(pinctrl_gpio_direction_output);
906905

907906
/**
908907
* pinctrl_gpio_set_config_new() - Apply config to given GPIO pin

drivers/pinctrl/intel/pinctrl-cherryview.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1155,7 +1155,7 @@ static int chv_gpio_direction_output(struct gpio_chip *chip, unsigned int offset
11551155
int value)
11561156
{
11571157
chv_gpio_set(chip, offset, value);
1158-
return pinctrl_gpio_direction_output_new(chip, offset);
1158+
return pinctrl_gpio_direction_output(chip, offset);
11591159
}
11601160

11611161
static const struct gpio_chip chv_gpio_chip = {

drivers/pinctrl/intel/pinctrl-intel.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -999,7 +999,7 @@ static int intel_gpio_direction_output(struct gpio_chip *chip, unsigned int offs
999999
int value)
10001000
{
10011001
intel_gpio_set(chip, offset, value);
1002-
return pinctrl_gpio_direction_output_new(chip, offset);
1002+
return pinctrl_gpio_direction_output(chip, offset);
10031003
}
10041004

10051005
static const struct gpio_chip intel_gpio_chip = {

0 commit comments

Comments
 (0)