Skip to content
Snippets Groups Projects
Commit 94740e47 authored by Nikita Kiryanov's avatar Nikita Kiryanov Committed by Tom Rini
Browse files

gpio: remove duplicate function signature


gpio_request() appears twice in asm-generic/gpio.h
Remove one of the definitions.

Signed-off-by: default avatarNikita Kiryanov <nikita@compulab.co.il>
parent d40d914c
No related branches found
No related tags found
No related merge requests found
...@@ -42,10 +42,11 @@ ...@@ -42,10 +42,11 @@
*/ */
/** /**
* Request ownership of a GPIO. * Request a gpio. This should be called before any of the other functions
* are used on this gpio.
* *
* @param gpio GPIO number * @param gp GPIO number
* @param label Name given to the GPIO * @param label User label for this GPIO
* @return 0 if ok, -1 on error * @return 0 if ok, -1 on error
*/ */
int gpio_request(unsigned gpio, const char *label); int gpio_request(unsigned gpio, const char *label);
...@@ -93,14 +94,4 @@ int gpio_get_value(unsigned gpio); ...@@ -93,14 +94,4 @@ int gpio_get_value(unsigned gpio);
* @return 0 if ok, -1 on error * @return 0 if ok, -1 on error
*/ */
int gpio_set_value(unsigned gpio, int value); int gpio_set_value(unsigned gpio, int value);
/**
* Request a gpio. This should be called before any of the other functions
* are used on this gpio.
*
* @param gp GPIO number
* @param label User label for this GPIO
* @return 0 if ok, -1 on error
*/
int gpio_request(unsigned gpio, const char *label);
#endif /* _ASM_GENERIC_GPIO_H_ */ #endif /* _ASM_GENERIC_GPIO_H_ */
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment