aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Lechner <[email protected]>2025-06-11 18:50:26 +0000
committerBartosz Golaszewski <[email protected]>2025-06-16 07:29:42 +0000
commit0a99f2d8ff5b31c3aaa70b23bde58692d1300bdc (patch)
tree939007aff58bec1d1e238e43cd1e6ed2cbf8af92
parentgpio: TODO: add a task for removing MMIO-specific fields from gpio_chip (diff)
downloadkernel-0a99f2d8ff5b31c3aaa70b23bde58692d1300bdc.tar.gz
kernel-0a99f2d8ff5b31c3aaa70b23bde58692d1300bdc.zip
gpio: virtuser: use gpiod_multi_set_value_cansleep()
Reduce verbosity by using gpiod_multi_set_value_cansleep() instead of gpiod_set_array_value_cansleep(). Signed-off-by: David Lechner <[email protected]> Link: https://lore.kernel.org/r/20250611-gpio-virtuser-use-gpiod_multi_set_value_cansleep-v1-1-43b4adf6c807@baylibre.com Signed-off-by: Bartosz Golaszewski <[email protected]>
-rw-r--r--drivers/gpio/gpio-virtuser.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/gpio/gpio-virtuser.c b/drivers/gpio/gpio-virtuser.c
index eab6726953b4..a10eab7d2617 100644
--- a/drivers/gpio/gpio-virtuser.c
+++ b/drivers/gpio/gpio-virtuser.c
@@ -215,9 +215,7 @@ static int gpio_virtuser_set_array_value(struct gpio_descs *descs,
struct gpio_virtuser_irq_work_context ctx;
if (!atomic)
- return gpiod_set_array_value_cansleep(descs->ndescs,
- descs->desc,
- descs->info, values);
+ return gpiod_multi_set_value_cansleep(descs, values);
gpio_virtuser_init_irq_work_context(&ctx);
ctx.work = IRQ_WORK_INIT_HARD(gpio_virtuser_set_value_array_atomic);