]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
gpio: tps68470: Make tps68470_gpio_output() always set the initial value
authorHans de Goede <hdegoede@redhat.com>
Mon, 10 Jul 2023 12:34:25 +0000 (14:34 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 3 Aug 2023 08:22:26 +0000 (10:22 +0200)
commitf3d2344811fdff1a0107f5dc82c72a0fdb33a037
tree0300ea4610a3c6a27111eaf4850c5666b5b1d490
parent21d063d27bf384c1c9216838da8055e88a1be9c4
gpio: tps68470: Make tps68470_gpio_output() always set the initial value

[ Upstream commit 5a7adc6c1069ce31ef4f606ae9c05592c80a6ab5 ]

Make tps68470_gpio_output() call tps68470_gpio_set() for output-only pins
too, so that the initial value passed to gpiod_direction_output() is
honored for these pins too.

Fixes: 275b13a65547 ("gpio: Add support for TPS68470 GPIOs")
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Reviewed-by: Daniel Scally <dan.scally@ideasonboard.com>
Tested-by: Daniel Scally <dan.scally@ideasonboard.com>
Reviewed-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpio/gpio-tps68470.c