diff options
author | Simon Glass <sjg@chromium.org> | 2021-02-04 21:21:55 -0700 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2021-03-03 14:51:06 -0500 |
commit | 13979fc44667cbc577f3c4d07b6692de104a3174 (patch) | |
tree | 1d4cd85975f13a4160653e2b300e14abbbe42c60 /test | |
parent | 4fe406729c87f41b745269c0f509da7d27f0a5c1 (diff) | |
download | u-boot-13979fc44667cbc577f3c4d07b6692de104a3174.tar.gz u-boot-13979fc44667cbc577f3c4d07b6692de104a3174.tar.bz2 u-boot-13979fc44667cbc577f3c4d07b6692de104a3174.zip |
dm: gpio: Rename set_dir_flags() method to update_flags()
The current method is a misnomer since it is also used (e.g. by stm32) to
update pull settings and open source/open drain.
Rename it and expand the documentation to cover a few more details.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Pratyush Yadav <p.yadav@ti.com>
Reviewed-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/dm/gpio.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/dm/gpio.c b/test/dm/gpio.c index d7b85e74ce..36bbaedb01 100644 --- a/test/dm/gpio.c +++ b/test/dm/gpio.c @@ -81,12 +81,12 @@ static int dm_test_gpio(struct unit_test_state *uts) /* Make it an open drain output, and reset it */ ut_asserteq(GPIOD_IS_OUT | GPIOD_IS_OUT_ACTIVE, sandbox_gpio_get_dir_flags(dev, offset)); - ut_assertok(ops->set_dir_flags(dev, offset, - GPIOD_IS_OUT | GPIOD_OPEN_DRAIN)); + ut_assertok(ops->set_flags(dev, offset, + GPIOD_IS_OUT | GPIOD_OPEN_DRAIN)); ut_asserteq(GPIOD_IS_OUT | GPIOD_OPEN_DRAIN, sandbox_gpio_get_dir_flags(dev, offset)); - ut_assertok(ops->set_dir_flags(dev, offset, - GPIOD_IS_OUT | GPIOD_IS_OUT_ACTIVE)); + ut_assertok(ops->set_flags(dev, offset, + GPIOD_IS_OUT | GPIOD_IS_OUT_ACTIVE)); ut_asserteq(GPIOD_IS_OUT | GPIOD_IS_OUT_ACTIVE, sandbox_gpio_get_dir_flags(dev, offset)); |