]> git.dujemihanovic.xyz Git - u-boot.git/commit
gpio: da8xx_gpio: Fix the _gpio_direction_output function
authorKeerthy <j-keerthy@ti.com>
Thu, 24 Oct 2019 08:22:28 +0000 (13:52 +0530)
committerTom Rini <trini@konsulko.com>
Wed, 30 Oct 2019 21:48:47 +0000 (17:48 -0400)
commit3135022cb4db37ccf7691b03f6a99cfe6afb878d
treee415d206110c4961dba151248728c097a9712675
parent15579631bc6b644eb504b1d9503174bd06b93439
gpio: da8xx_gpio: Fix the _gpio_direction_output function

_gpio_direction_output function currently calls gpio_set_value
with the wrong gpio number. gpio_set_value in the uclass driver
expects a different gpio number and the _gpio_direction_output
is currently providing the number specific to the bank.

Hence fix it by calling the _gpio_set_value function instead.

Reported-by: Faiz Abbas <faiz_abbas@ti.com>
Fixes: 8e51c0f254 ("dm: gpio: Add DM compatibility to GPIO driver for Davinci")
Signed-off-by: Keerthy <j-keerthy@ti.com>
drivers/gpio/da8xx_gpio.c