Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+31 -32
+1 -1
drivers/gpio/gpio-mvebu.c
··· 366 366 * Check with the pinctrl driver whether this pin is usable as 367 367 * an output GPIO 368 368 */ 369 - ret = pinctrl_gpio_direction_output_new(chip, pin); 369 + ret = pinctrl_gpio_direction_output(chip, pin); 370 370 if (ret) 371 371 return ret; 372 372
+1 -1
drivers/gpio/gpio-pxa.c
··· 289 289 writel_relaxed(mask, base + (value ? GPSR_OFFSET : GPCR_OFFSET)); 290 290 291 291 if (pxa_gpio_has_pinctrl()) { 292 - ret = pinctrl_gpio_direction_output_new(chip, offset); 292 + ret = pinctrl_gpio_direction_output(chip, offset); 293 293 if (ret) 294 294 return ret; 295 295 }
+1 -1
drivers/gpio/gpio-rockchip.c
··· 161 161 if (input) 162 162 pinctrl_gpio_direction_input(chip, offset); 163 163 else 164 - pinctrl_gpio_direction_output_new(chip, offset); 164 + pinctrl_gpio_direction_output(chip, offset); 165 165 166 166 raw_spin_lock_irqsave(&bank->slock, flags); 167 167 rockchip_gpio_writel_bit(bank, offset, data, bank->gpio_regs->port_ddr);
+1 -1
drivers/gpio/gpio-tegra.c
··· 199 199 tegra_gpio_mask_write(tgi, GPIO_MSK_OE(tgi, offset), offset, 1); 200 200 tegra_gpio_enable(tgi, offset); 201 201 202 - ret = pinctrl_gpio_direction_output_new(chip, offset); 202 + ret = pinctrl_gpio_direction_output(chip, offset); 203 203 if (ret < 0) 204 204 dev_err(tgi->dev, 205 205 "Failed to set pinctrl output direction of GPIO %d: %d",
+1 -1
drivers/gpio/gpio-vf610.c
··· 148 148 vf610_gpio_writel(val, port->gpio_base + GPIO_PDDR); 149 149 } 150 150 151 - return pinctrl_gpio_direction_output_new(chip, gpio); 151 + return pinctrl_gpio_direction_output(chip, gpio); 152 152 } 153 153 154 154 static void vf610_gpio_irq_handler(struct irq_desc *desc)
+1 -1
drivers/pinctrl/cirrus/pinctrl-cs42l43.c
··· 516 516 { 517 517 cs42l43_gpio_set(chip, offset, value); 518 518 519 - return pinctrl_gpio_direction_output_new(chip, offset); 519 + return pinctrl_gpio_direction_output(chip, offset); 520 520 } 521 521 522 522 static int cs42l43_gpio_add_pin_ranges(struct gpio_chip *chip)
+1 -1
drivers/pinctrl/cirrus/pinctrl-lochnagar.c
··· 1098 1098 { 1099 1099 lochnagar_gpio_set(chip, offset, value); 1100 1100 1101 - return pinctrl_gpio_direction_output_new(chip, offset); 1101 + return pinctrl_gpio_direction_output(chip, offset); 1102 1102 } 1103 1103 1104 1104 static int lochnagar_fill_func_groups(struct lochnagar_pin_priv *priv)
+3 -4
drivers/pinctrl/core.c
··· 889 889 EXPORT_SYMBOL_GPL(pinctrl_gpio_direction_input); 890 890 891 891 /** 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 894 893 * @gc: GPIO chip structure from the GPIO subsystem 895 894 * @offset: hardware offset of the GPIO relative to the controller 896 895 * ··· 897 898 * as part of their gpio_direction_output() semantics, platforms and individual 898 899 * drivers shall *NOT* touch pin control GPIO calls. 899 900 */ 900 - int pinctrl_gpio_direction_output_new(struct gpio_chip *gc, unsigned int offset) 901 + int pinctrl_gpio_direction_output(struct gpio_chip *gc, unsigned int offset) 901 902 { 902 903 return pinctrl_gpio_direction(gc->base + offset, false); 903 904 } 904 - EXPORT_SYMBOL_GPL(pinctrl_gpio_direction_output_new); 905 + EXPORT_SYMBOL_GPL(pinctrl_gpio_direction_output); 905 906 906 907 /** 907 908 * pinctrl_gpio_set_config_new() - Apply config to given GPIO pin
+1 -1
drivers/pinctrl/intel/pinctrl-cherryview.c
··· 1155 1155 int value) 1156 1156 { 1157 1157 chv_gpio_set(chip, offset, value); 1158 - return pinctrl_gpio_direction_output_new(chip, offset); 1158 + return pinctrl_gpio_direction_output(chip, offset); 1159 1159 } 1160 1160 1161 1161 static const struct gpio_chip chv_gpio_chip = {
+1 -1
drivers/pinctrl/intel/pinctrl-intel.c
··· 999 999 int value) 1000 1000 { 1001 1001 intel_gpio_set(chip, offset, value); 1002 - return pinctrl_gpio_direction_output_new(chip, offset); 1002 + return pinctrl_gpio_direction_output(chip, offset); 1003 1003 } 1004 1004 1005 1005 static const struct gpio_chip intel_gpio_chip = {
+1 -1
drivers/pinctrl/intel/pinctrl-lynxpoint.c
··· 549 549 { 550 550 lp_gpio_set(chip, offset, value); 551 551 552 - return pinctrl_gpio_direction_output_new(chip, offset); 552 + return pinctrl_gpio_direction_output(chip, offset); 553 553 } 554 554 555 555 static int lp_gpio_get_direction(struct gpio_chip *chip, unsigned int offset)
+1 -1
drivers/pinctrl/mediatek/pinctrl-moore.c
··· 520 520 { 521 521 mtk_gpio_set(chip, gpio, value); 522 522 523 - return pinctrl_gpio_direction_output_new(chip, gpio); 523 + return pinctrl_gpio_direction_output(chip, gpio); 524 524 } 525 525 526 526 static int mtk_gpio_to_irq(struct gpio_chip *chip, unsigned int offset)
+1 -1
drivers/pinctrl/mediatek/pinctrl-mtk-common.c
··· 818 818 unsigned offset, int value) 819 819 { 820 820 mtk_gpio_set(chip, offset, value); 821 - return pinctrl_gpio_direction_output_new(chip, offset); 821 + return pinctrl_gpio_direction_output(chip, offset); 822 822 } 823 823 824 824 static int mtk_gpio_get_direction(struct gpio_chip *chip, unsigned offset)
+1 -1
drivers/pinctrl/mediatek/pinctrl-paris.c
··· 929 929 930 930 mtk_gpio_set(chip, gpio, value); 931 931 932 - return pinctrl_gpio_direction_output_new(chip, gpio); 932 + return pinctrl_gpio_direction_output(chip, gpio); 933 933 } 934 934 935 935 static int mtk_gpio_to_irq(struct gpio_chip *chip, unsigned int offset)
+1 -1
drivers/pinctrl/nuvoton/pinctrl-npcm7xx.c
··· 188 188 dev_dbg(chip->parent, "gpio_direction_output: offset%d = %x\n", offset, 189 189 value); 190 190 191 - ret = pinctrl_gpio_direction_output_new(chip, offset); 191 + ret = pinctrl_gpio_direction_output(chip, offset); 192 192 if (ret) 193 193 return ret; 194 194
+1 -1
drivers/pinctrl/nuvoton/pinctrl-npcm8xx.c
··· 186 186 struct npcm8xx_gpio *bank = gpiochip_get_data(chip); 187 187 int ret; 188 188 189 - ret = pinctrl_gpio_direction_output_new(chip, offset); 189 + ret = pinctrl_gpio_direction_output(chip, offset); 190 190 if (ret) 191 191 return ret; 192 192
+1 -1
drivers/pinctrl/pinctrl-as3722.c
··· 509 509 unsigned offset, int value) 510 510 { 511 511 as3722_gpio_set(chip, offset, value); 512 - return pinctrl_gpio_direction_output_new(chip, offset); 512 + return pinctrl_gpio_direction_output(chip, offset); 513 513 } 514 514 515 515 static int as3722_gpio_to_irq(struct gpio_chip *chip, unsigned offset)
+1 -1
drivers/pinctrl/pinctrl-cy8c95x0.c
··· 571 571 if (ret) 572 572 return ret; 573 573 574 - return pinctrl_gpio_direction_output_new(gc, off); 574 + return pinctrl_gpio_direction_output(gc, off); 575 575 } 576 576 577 577 static int cy8c95x0_gpio_get_value(struct gpio_chip *gc, unsigned int off)
+2 -2
drivers/pinctrl/pinctrl-ingenic.c
··· 3570 3570 unsigned int offset, int value) 3571 3571 { 3572 3572 ingenic_gpio_set(gc, offset, value); 3573 - return pinctrl_gpio_direction_output_new(gc, offset); 3573 + return pinctrl_gpio_direction_output(gc, offset); 3574 3574 } 3575 3575 3576 3576 static inline void ingenic_config_pin(struct ingenic_pinctrl *jzpc, ··· 4054 4054 break; 4055 4055 4056 4056 case PIN_CONFIG_OUTPUT: 4057 - ret = pinctrl_gpio_direction_output_new(jzpc->gc, 4057 + ret = pinctrl_gpio_direction_output(jzpc->gc, 4058 4058 pin - jzpc->gc->base); 4059 4059 if (ret) 4060 4060 return ret;
+1 -1
drivers/pinctrl/pinctrl-ocelot.c
··· 1795 1795 regmap_write(info->map, REG(OCELOT_GPIO_OUT_CLR, info, offset), 1796 1796 pin); 1797 1797 1798 - return pinctrl_gpio_direction_output_new(chip, offset); 1798 + return pinctrl_gpio_direction_output(chip, offset); 1799 1799 } 1800 1800 1801 1801 static const struct gpio_chip ocelot_gpiolib_chip = {
+1 -1
drivers/pinctrl/pinctrl-rk805.c
··· 296 296 unsigned int offset, int value) 297 297 { 298 298 rk805_gpio_set(chip, offset, value); 299 - return pinctrl_gpio_direction_output_new(chip, offset); 299 + return pinctrl_gpio_direction_output(chip, offset); 300 300 } 301 301 302 302 static int rk805_gpio_get_direction(struct gpio_chip *chip, unsigned int offset)
+1 -1
drivers/pinctrl/pinctrl-st.c
··· 730 730 struct st_gpio_bank *bank = gpiochip_get_data(chip); 731 731 732 732 __st_gpio_set(bank, offset, value); 733 - pinctrl_gpio_direction_output_new(chip, offset); 733 + pinctrl_gpio_direction_output(chip, offset); 734 734 735 735 return 0; 736 736 }
+1 -1
drivers/pinctrl/renesas/gpio.c
··· 172 172 { 173 173 gpio_pin_set_value(gpiochip_get_data(gc), offset, value); 174 174 175 - return pinctrl_gpio_direction_output_new(gc, offset); 175 + return pinctrl_gpio_direction_output(gc, offset); 176 176 } 177 177 178 178 static int gpio_pin_get(struct gpio_chip *gc, unsigned offset)
+1 -1
drivers/pinctrl/stm32/pinctrl-stm32.c
··· 250 250 struct stm32_gpio_bank *bank = gpiochip_get_data(chip); 251 251 252 252 __stm32_gpio_set(bank, offset, value); 253 - pinctrl_gpio_direction_output_new(chip, offset); 253 + pinctrl_gpio_direction_output(chip, offset); 254 254 255 255 return 0; 256 256 }
+1 -1
drivers/pinctrl/vt8500/pinctrl-wmt.c
··· 535 535 int value) 536 536 { 537 537 wmt_gpio_set_value(chip, offset, value); 538 - return pinctrl_gpio_direction_output_new(chip, offset); 538 + return pinctrl_gpio_direction_output(chip, offset); 539 539 } 540 540 541 541 static const struct gpio_chip wmt_gpio_chip = {
+3 -3
include/linux/pinctrl/consumer.h
··· 31 31 void pinctrl_gpio_free(struct gpio_chip *gc, unsigned int offset); 32 32 int pinctrl_gpio_direction_input(struct gpio_chip *gc, 33 33 unsigned int offset); 34 - int pinctrl_gpio_direction_output_new(struct gpio_chip *gc, 35 - unsigned int offset); 34 + int pinctrl_gpio_direction_output(struct gpio_chip *gc, 35 + unsigned int offset); 36 36 int pinctrl_gpio_set_config_new(struct gpio_chip *gc, unsigned int offset, 37 37 unsigned long config); 38 38 ··· 91 91 } 92 92 93 93 static inline int 94 - pinctrl_gpio_direction_output_new(struct gpio_chip *gc, unsigned int offset) 94 + pinctrl_gpio_direction_output(struct gpio_chip *gc, unsigned int offset) 95 95 { 96 96 return 0; 97 97 }