diff options
author | Simon Glass <sjg@chromium.org> | 2021-03-23 14:52:07 +1300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2021-04-12 17:45:40 -0400 |
commit | 34f8fc7c859926174b02734b35e5d5112a8c9fe7 (patch) | |
tree | 0df7f735fb0d6ab3403c3488fa00966b81378daf /drivers/gpio | |
parent | a12aa7995f19ba612a0ab0a9b13da38183250973 (diff) | |
download | u-boot-34f8fc7c859926174b02734b35e5d5112a8c9fe7.tar.gz |
gpio: Drop dm_gpio_set_dir()
This function is not used. Drop it.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Diffstat (limited to 'drivers/gpio')
-rw-r--r-- | drivers/gpio/gpio-uclass.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/drivers/gpio/gpio-uclass.c b/drivers/gpio/gpio-uclass.c index f24db87ef0..e4e7f58c39 100644 --- a/drivers/gpio/gpio-uclass.c +++ b/drivers/gpio/gpio-uclass.c @@ -713,17 +713,6 @@ int dm_gpio_set_dir_flags(struct gpio_desc *desc, ulong flags) return dm_gpio_clrset_flags(desc, GPIOD_MASK_DIR, flags); } -int dm_gpio_set_dir(struct gpio_desc *desc) -{ - int ret; - - ret = check_reserved(desc, "set_dir"); - if (ret) - return ret; - - return _dm_gpio_set_flags(desc, desc->flags); -} - int dm_gpios_clrset_flags(struct gpio_desc *desc, int count, ulong clr, ulong set) { |