ARM: s3c/gpio: complete the conversion to new GPIO value setters
authorBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Wed, 30 Jul 2025 07:14:43 +0000 (09:14 +0200)
committerArnd Bergmann <arnd@arndb.de>
Wed, 30 Jul 2025 16:21:52 +0000 (18:21 +0200)
Commit fb52f3226cab ("ARM: s3c/gpio: use new line value setter
callbacks") correctly changed the assignment of the callback but missed
the check one liner higher. Change it now too to using the recommended
callback as the legacy one is going away soon.

Fixes: fb52f3226cab ("ARM: s3c/gpio: use new line value setter callbacks")
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
arch/arm/mach-s3c/gpio-samsung.c

index 206a492fbaf50c66cbea12bd30285635c452de31..3ee4ad969cc22e17fc17af0b9de3e3fb698ed647 100644 (file)
@@ -516,7 +516,7 @@ static void __init samsung_gpiolib_add(struct samsung_gpio_chip *chip)
                gc->direction_input = samsung_gpiolib_2bit_input;
        if (!gc->direction_output)
                gc->direction_output = samsung_gpiolib_2bit_output;
-       if (!gc->set)
+       if (!gc->set_rv)
                gc->set_rv = samsung_gpiolib_set;
        if (!gc->get)
                gc->get = samsung_gpiolib_get;