Skip to content

Commit c5eab2d

Browse files
Bartosz Golaszewskigeertu
authored andcommitted
pinctrl: renesas: rza1: Use new GPIO line value setter callbacks
struct gpio_chip now has callbacks for setting line values that return an integer, allowing to indicate failures. Convert the driver to using them. Signed-off-by: Bartosz Golaszewski <[email protected]> Reviewed-by: Wolfram Sang <[email protected]> Reviewed-by: Geert Uytterhoeven <[email protected]> Link: https://lore.kernel.org/20250611-gpiochip-set-rv-pinctrl-renesas-v1-3-ad169a794ef0@linaro.org Signed-off-by: Geert Uytterhoeven <[email protected]>
1 parent 146ea93 commit c5eab2d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

drivers/pinctrl/renesas/pinctrl-rza1.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -830,12 +830,13 @@ static int rza1_gpio_get(struct gpio_chip *chip, unsigned int gpio)
830830
return rza1_pin_get(port, gpio);
831831
}
832832

833-
static void rza1_gpio_set(struct gpio_chip *chip, unsigned int gpio,
834-
int value)
833+
static int rza1_gpio_set(struct gpio_chip *chip, unsigned int gpio, int value)
835834
{
836835
struct rza1_port *port = gpiochip_get_data(chip);
837836

838837
rza1_pin_set(port, gpio, value);
838+
839+
return 0;
839840
}
840841

841842
static const struct gpio_chip rza1_gpiochip_template = {
@@ -845,7 +846,7 @@ static const struct gpio_chip rza1_gpiochip_template = {
845846
.direction_input = rza1_gpio_direction_input,
846847
.direction_output = rza1_gpio_direction_output,
847848
.get = rza1_gpio_get,
848-
.set = rza1_gpio_set,
849+
.set_rv = rza1_gpio_set,
849850
};
850851
/* ----------------------------------------------------------------------------
851852
* pinctrl operations

0 commit comments

Comments
 (0)