OSDN Git Service

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)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Wed, 19 Jul 2023 11:22:13 +0000 (13:22 +0200)
commit5a7adc6c1069ce31ef4f606ae9c05592c80a6ab5
tree1e289863ce42a1f8f8af1e6ebdb38728f2f5e73a
parent06c2afb862f9da8dc5efa4b6076a0e48c3fbaaa5
gpio: tps68470: Make tps68470_gpio_output() always set the initial value

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>
drivers/gpio/gpio-tps68470.c