mirror of
https://xff.cz/git/u-boot/
synced 2025-11-01 19:05:51 +01:00
gpio: Rename dm_gpio_get_dir_flags() to dm_gpio_get_flags()
This function can be used to get any flags, not just direction flags. Rename it to avoid confusion. 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>
This commit is contained in:
@@ -683,7 +683,7 @@ int dm_gpio_set_dir(struct gpio_desc *desc)
|
||||
return _dm_gpio_set_flags(desc, desc->flags);
|
||||
}
|
||||
|
||||
int dm_gpio_get_dir_flags(struct gpio_desc *desc, ulong *flagsp)
|
||||
int dm_gpio_get_flags(struct gpio_desc *desc, ulong *flagsp)
|
||||
{
|
||||
struct udevice *dev = desc->dev;
|
||||
int ret, value;
|
||||
|
||||
Reference in New Issue
Block a user