aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpio/gpio-reg.c
diff options
context:
space:
mode:
authorBartosz Golaszewski <[email protected]>2025-07-17 13:21:26 +0000
committerBartosz Golaszewski <[email protected]>2025-08-07 08:07:06 +0000
commitd9d87d90cc0b10cd56ae353f50b11417e7d21712 (patch)
treeadc641600fa4ca6a0e07d1666b3309074d197f97 /drivers/gpio/gpio-reg.c
parentgpio: remove legacy GPIO line value setter callbacks (diff)
downloadkernel-d9d87d90cc0b10cd56ae353f50b11417e7d21712.tar.gz
kernel-d9d87d90cc0b10cd56ae353f50b11417e7d21712.zip
treewide: rename GPIO set callbacks back to their original names
The conversion of all GPIO drivers to using the .set_rv() and .set_multiple_rv() callbacks from struct gpio_chip (which - unlike their predecessors - return an integer and allow the controller drivers to indicate failures to users) is now complete and the legacy ones have been removed. Rename the new callbacks back to their original names in one sweeping change. Signed-off-by: Bartosz Golaszewski <[email protected]>
Diffstat (limited to 'drivers/gpio/gpio-reg.c')
-rw-r--r--drivers/gpio/gpio-reg.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpio/gpio-reg.c b/drivers/gpio/gpio-reg.c
index d8da99f97385..f2238196faf1 100644
--- a/drivers/gpio/gpio-reg.c
+++ b/drivers/gpio/gpio-reg.c
@@ -46,7 +46,7 @@ static int gpio_reg_direction_output(struct gpio_chip *gc, unsigned offset,
if (r->direction & BIT(offset))
return -ENOTSUPP;
- gc->set_rv(gc, offset, value);
+ gc->set(gc, offset, value);
return 0;
}
@@ -161,9 +161,9 @@ struct gpio_chip *gpio_reg_init(struct device *dev, void __iomem *reg,
r->gc.get_direction = gpio_reg_get_direction;
r->gc.direction_input = gpio_reg_direction_input;
r->gc.direction_output = gpio_reg_direction_output;
- r->gc.set_rv = gpio_reg_set;
+ r->gc.set = gpio_reg_set;
r->gc.get = gpio_reg_get;
- r->gc.set_multiple_rv = gpio_reg_set_multiple;
+ r->gc.set_multiple = gpio_reg_set_multiple;
if (irqs)
r->gc.to_irq = gpio_reg_to_irq;
r->gc.base = base;