From 9c5ba3859c1b7682ad9c44223d26ecdea60c680c Mon Sep 17 00:00:00 2001 From: Arturs Artamonovs Date: Wed, 27 May 2026 10:10:15 +0100 Subject: [PATCH] gpio: adi-adsp-port: update set callback to return int Adapt to the upstream gpio_chip API change where the .set callback now returns int instead of void, allowing error propagation. Signed-off-by: Arturs Artamonovs --- drivers/gpio/gpio-adi-adsp-port.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/gpio/gpio-adi-adsp-port.c b/drivers/gpio/gpio-adi-adsp-port.c index 2a6957b7a3897f..c54a5e24a54935 100644 --- a/drivers/gpio/gpio-adi-adsp-port.c +++ b/drivers/gpio/gpio-adi-adsp-port.c @@ -50,7 +50,7 @@ static int adsp_gpio_direction_output(struct gpio_chip *chip, unsigned int offse return 0; } -static void adsp_gpio_set_value(struct gpio_chip *chip, unsigned int offset, int value) +static int adsp_gpio_set_value(struct gpio_chip *chip, unsigned int offset, int value) { struct adsp_gpio_port *port = to_adsp_gpio_port(chip); @@ -73,6 +73,8 @@ static void adsp_gpio_set_value(struct gpio_chip *chip, unsigned int offset, int else __adsp_gpio_writew(port, BIT(offset), ADSP_PORT_REG_DATA_CLEAR); } + + return 0; } static int adsp_gpio_get_value(struct gpio_chip *chip, unsigned int offset)