]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
auxdisplay: seg-led-gpio: use gpiod_multi_set_value_cansleep
authorDavid Lechner <dlechner@baylibre.com>
Mon, 10 Feb 2025 22:33:28 +0000 (16:33 -0600)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 12 Feb 2025 10:52:17 +0000 (12:52 +0200)
Reduce verbosity by using gpiod_multi_set_value_cansleep() instead of
gpiod_set_array_value_cansleep().

Acked-by: Andy Shevchenko <andy@kernel.org>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: David Lechner <dlechner@baylibre.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/auxdisplay/seg-led-gpio.c

index f10c25e6bf126cfaac3e4c353f8bfc6639d94a60..dfb62e9ce9b407fe356c3a7d2d25319b91a11a75 100644 (file)
@@ -36,8 +36,7 @@ static void seg_led_update(struct work_struct *work)
 
        bitmap_set_value8(values, map_to_seg7(&map->map.seg7, linedisp->buf[0]), 0);
 
-       gpiod_set_array_value_cansleep(priv->segment_gpios->ndescs, priv->segment_gpios->desc,
-                                      priv->segment_gpios->info, values);
+       gpiod_multi_set_value_cansleep(priv->segment_gpios, values);
 }
 
 static int seg_led_linedisp_get_map_type(struct linedisp *linedisp)