mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-06-09 23:36:03 +09:00
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>
This commit is contained in:
parent
a12aa7995f
commit
34f8fc7c85
|
@ -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);
|
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,
|
int dm_gpios_clrset_flags(struct gpio_desc *desc, int count, ulong clr,
|
||||||
ulong set)
|
ulong set)
|
||||||
{
|
{
|
||||||
|
|
|
@ -706,17 +706,6 @@ int dm_gpio_get_value(const struct gpio_desc *desc);
|
||||||
|
|
||||||
int dm_gpio_set_value(const struct gpio_desc *desc, int value);
|
int dm_gpio_set_value(const struct gpio_desc *desc, int value);
|
||||||
|
|
||||||
/**
|
|
||||||
* dm_gpio_set_dir() - Set the direction for a GPIO
|
|
||||||
*
|
|
||||||
* This sets up the direction according to the GPIO flags: desc->flags.
|
|
||||||
*
|
|
||||||
* @desc: GPIO description containing device, offset and flags,
|
|
||||||
* previously returned by gpio_request_by_name()
|
|
||||||
* @return 0 if OK, -ve on error
|
|
||||||
*/
|
|
||||||
int dm_gpio_set_dir(struct gpio_desc *desc);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* dm_gpio_clrset_flags() - Update flags
|
* dm_gpio_clrset_flags() - Update flags
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue
Block a user