linux/drivers/iio/amplifiers
David Lechner a927e72925 iio: amplifiers: hmc425a: use gpiod_multi_set_value_cansleep
Reduce verbosity by using gpiod_multi_set_value_cansleep() instead of
gpiod_set_array_value_cansleep().

Passing NULL as the 3rd argument to gpiod_set_array_value_cansleep()
only needs to be done if the array was constructed manually, which is
not the case here. This change effectively replaces that argument with
st->gpios->array_info. The possible side effect of this change is that
it could make setting the GPIOs more efficient.

Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: David Lechner <dlechner@baylibre.com>
Link: https://patch.msgid.link/20250210-gpio-set-array-helper-v3-8-d6a673674da8@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2025-02-17 13:20:41 +00:00
..
Kconfig iio: amplifiers: ada4250: add missing select REGMAP_SPI in Kconfig 2024-10-06 16:31:03 +01:00
Makefile
ad8366.c
ada4250.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
hmc425a.c iio: amplifiers: hmc425a: use gpiod_multi_set_value_cansleep 2025-02-17 13:20:41 +00:00