Skip to content

Commit 4fccb26

Browse files
author
Bartosz Golaszewski
committed
treewide: rename pinctrl_gpio_free_new()
Now that pinctrl_gpio_free()() 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 acb38be commit 4fccb26

17 files changed

Lines changed: 21 additions & 21 deletions

drivers/gpio/gpio-aspeed.c

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

756756
static void aspeed_gpio_free(struct gpio_chip *chip, unsigned int offset)
757757
{
758-
pinctrl_gpio_free_new(chip, offset);
758+
pinctrl_gpio_free(chip, offset);
759759
}
760760

761761
static int usecs_to_cycles(struct aspeed_gpio *gpio, unsigned long usecs,

drivers/gpio/gpio-em.c

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

235235
static void em_gio_free(struct gpio_chip *chip, unsigned offset)
236236
{
237-
pinctrl_gpio_free_new(chip, offset);
237+
pinctrl_gpio_free(chip, offset);
238238

239239
/* Set the GPIO as an input to ensure that the next GPIO request won't
240240
* drive the GPIO pin as an output.

drivers/gpio/gpio-rcar.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ static void gpio_rcar_free(struct gpio_chip *chip, unsigned offset)
286286
{
287287
struct gpio_rcar_priv *p = gpiochip_get_data(chip);
288288

289-
pinctrl_gpio_free_new(chip, offset);
289+
pinctrl_gpio_free(chip, offset);
290290

291291
/*
292292
* Set the GPIO as an input to ensure that the next GPIO request won't

drivers/gpio/gpio-tegra.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ static void tegra_gpio_free(struct gpio_chip *chip, unsigned int offset)
146146
{
147147
struct tegra_gpio_info *tgi = gpiochip_get_data(chip);
148148

149-
pinctrl_gpio_free_new(chip, offset);
149+
pinctrl_gpio_free(chip, offset);
150150
tegra_gpio_disable(tgi, offset);
151151
}
152152

drivers/gpio/gpiolib.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2030,7 +2030,7 @@ void gpiochip_generic_free(struct gpio_chip *gc, unsigned int offset)
20302030
return;
20312031
#endif
20322032

2033-
pinctrl_gpio_free_new(gc, offset);
2033+
pinctrl_gpio_free(gc, offset);
20342034
}
20352035
EXPORT_SYMBOL_GPL(gpiochip_generic_free);
20362036

drivers/pinctrl/bcm/pinctrl-iproc-gpio.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ static void iproc_gpio_free(struct gpio_chip *gc, unsigned offset)
345345
if (!chip->pinmux_is_supported)
346346
return;
347347

348-
pinctrl_gpio_free_new(gc, offset);
348+
pinctrl_gpio_free(gc, offset);
349349
}
350350

351351
static int iproc_gpio_direction_input(struct gpio_chip *gc, unsigned gpio)

drivers/pinctrl/core.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -820,15 +820,15 @@ int pinctrl_gpio_request(struct gpio_chip *gc, unsigned int offset)
820820
EXPORT_SYMBOL_GPL(pinctrl_gpio_request);
821821

822822
/**
823-
* pinctrl_gpio_free_new() - free control on a single pin, currently used as GPIO
823+
* pinctrl_gpio_free() - free control on a single pin, currently used as GPIO
824824
* @gc: GPIO chip structure from the GPIO subsystem
825825
* @offset: hardware offset of the GPIO relative to the controller
826826
*
827827
* This function should *ONLY* be used from gpiolib-based GPIO drivers,
828828
* as part of their gpio_request() semantics, platforms and individual drivers
829829
* shall *NOT* request GPIO pins to be muxed in.
830830
*/
831-
void pinctrl_gpio_free_new(struct gpio_chip *gc, unsigned int offset)
831+
void pinctrl_gpio_free(struct gpio_chip *gc, unsigned int offset)
832832
{
833833
struct pinctrl_gpio_range *range;
834834
struct pinctrl_dev *pctldev;
@@ -848,7 +848,7 @@ void pinctrl_gpio_free_new(struct gpio_chip *gc, unsigned int offset)
848848

849849
mutex_unlock(&pctldev->mutex);
850850
}
851-
EXPORT_SYMBOL_GPL(pinctrl_gpio_free_new);
851+
EXPORT_SYMBOL_GPL(pinctrl_gpio_free);
852852

853853
static int pinctrl_gpio_direction(unsigned gpio, bool input)
854854
{

drivers/pinctrl/nuvoton/pinctrl-npcm7xx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ static int npcmgpio_gpio_request(struct gpio_chip *chip, unsigned int offset)
211211
static void npcmgpio_gpio_free(struct gpio_chip *chip, unsigned int offset)
212212
{
213213
dev_dbg(chip->parent, "gpio_free: offset%d\n", offset);
214-
pinctrl_gpio_free_new(chip, offset);
214+
pinctrl_gpio_free(chip, offset);
215215
}
216216

217217
static void npcmgpio_irq_handler(struct irq_desc *desc)

drivers/pinctrl/nuvoton/pinctrl-npcm8xx.c

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

208208
static void npcmgpio_gpio_free(struct gpio_chip *chip, unsigned int offset)
209209
{
210-
pinctrl_gpio_free_new(chip, offset);
210+
pinctrl_gpio_free(chip, offset);
211211
}
212212

213213
static void npcmgpio_irq_handler(struct irq_desc *desc)

drivers/pinctrl/renesas/gpio.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ static int gpio_pin_request(struct gpio_chip *gc, unsigned offset)
140140

141141
static void gpio_pin_free(struct gpio_chip *gc, unsigned offset)
142142
{
143-
return pinctrl_gpio_free_new(gc, offset);
143+
return pinctrl_gpio_free(gc, offset);
144144
}
145145

146146
static void gpio_pin_set_value(struct sh_pfc_chip *chip, unsigned offset,

0 commit comments

Comments
 (0)