]> git.dujemihanovic.xyz Git - u-boot.git/commit
gpio: sandbox: Rename GPIO dir_flags to flags
authorSimon Glass <sjg@chromium.org>
Fri, 5 Feb 2021 04:21:59 +0000 (21:21 -0700)
committerTom Rini <trini@konsulko.com>
Wed, 3 Mar 2021 20:38:58 +0000 (15:38 -0500)
commita03a0aa7e833ab6af62728d6c0591b7772ffa9a8
tree9854b3341a735242646f32e3fce740d3e68827d9
parentc0c1e62c6e47ffccca953c57df4624d685493584
gpio: sandbox: Rename GPIO dir_flags to flags

Adjust the terminology in this driver to reflect that fact that all flags
are handled, not just direction flags.

Create a new access function to get the full GPIO state, not just the
direction flags. Drop the static invalid_dir_flags since we can rely on a
segfault if something is wrong.

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