]> git.baikalelectronics.ru Git - uboot.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)
commita564f3986cba2eb4a38b154a227a3b2a62f9ca53
treede13345480cbd7411c78cdf97856a3fbc88adb3b
parentf1a91a7c8d14c3fc4abe9ac54456c689ce5ef9ae
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