dm: gpio: Rename get_dir_flags() method to get_flags()
authorSimon Glass <sjg@chromium.org>
Fri, 5 Feb 2021 04:21:56 +0000 (21:21 -0700)
committerTom Rini <trini@konsulko.com>
Wed, 3 Mar 2021 19:51:06 +0000 (14:51 -0500)
commit9648789e2634e30fc58ad7180a7c7815e6227061
tree1533178802a6fa29f12ce021b903d26477adee81
parent13979fc44667cbc577f3c4d07b6692de104a3174
dm: gpio: Rename get_dir_flags() method to get_flags()

It is more useful to be able to read all the flags, not just the direction
ones. In fact this is what the STM32 driver does. Update the method name
to reflect this.

Tweak the docs a little and use 'flagsp' as the return argument, as is
common in driver model, to indicate it returns a value.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Reviewed-by: Pratyush Yadav <p.yadav@ti.com>
drivers/gpio/gpio-uclass.c
drivers/gpio/sandbox.c
drivers/gpio/stm32_gpio.c
drivers/pinctrl/pinctrl-stmfx.c
include/asm-generic/gpio.h