]> www.infradead.org Git - users/jedix/linux-maple.git/commit
phy: mapphone-mdm6600: use gpiod_multi_set_value_cansleep
authorDavid Lechner <dlechner@baylibre.com>
Mon, 10 Feb 2025 22:33:40 +0000 (16:33 -0600)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Mon, 17 Feb 2025 13:27:34 +0000 (14:27 +0100)
commitd50a7908df16aa5640fe7c36f19f21d443d9eae9
tree2c9de0b8b8cfeec42355f0bedb59a2625b720dda
parent35d950a66f1f403ebf1d4c5a50b15c25e146d6fd
phy: mapphone-mdm6600: use gpiod_multi_set_value_cansleep

Reduce verbosity by using gpiod_multi_set_value_cansleep() instead of
gpiod_set_array_value_cansleep().

ddata->cmd_gpios->ndescs is validated to be equal to
PHY_MDM6600_NR_CMD_LINES during driver probe, so it will have the same
value as the previously hard-coded argument.

Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: David Lechner <dlechner@baylibre.com>
Acked-by: Vinod Koul <vkoul@kernel.org>
Link: https://lore.kernel.org/r/20250210-gpio-set-array-helper-v3-14-d6a673674da8@baylibre.com
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
drivers/phy/motorola/phy-mapphone-mdm6600.c