]> git.dujemihanovic.xyz Git - u-boot.git/commit
gpio: Replace direction_input() and direction_output()
authorSimon Glass <sjg@chromium.org>
Fri, 5 Feb 2021 04:22:04 +0000 (21:22 -0700)
committerTom Rini <trini@konsulko.com>
Wed, 3 Mar 2021 20:40:11 +0000 (15:40 -0500)
commitca1e1f57beb29fbaf48f9488ada1b008dace8314
treede13345480cbd7411c78cdf97856a3fbc88adb3b
parent7e0a96d559da493812220731535f5ba6351bcea1
gpio: Replace direction_input() and direction_output()

The new update_flags() method is more flexible since it allows the
driver to see the full flags all at once. Use that in preference to these
two functions. Add comments to that effect.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
drivers/gpio/gpio-uclass.c
include/asm-generic/gpio.h