From 81bdc155c72ef9e093b388b90c58d8134d870976 Mon Sep 17 00:00:00 2001 From: Sanjeev Premi Date: Thu, 8 Sep 2011 10:47:25 -0400 Subject: omap: gpio: Use generic API Convert all OMAP specific functions to use the common API definitions in include/asm/gpio.h. In the process, made few additional changes: - Use -EINVAL consistently. -1 was used in many places. - Removed one-liner static functions that were used only once. Replaced the content as necessary. - Combines implementation of functions omap_get_gpio_dataout() and omap_get_gpio_datain(). To do so, new static function _get_gpio_direction() was added. Signed-off-by: Sanjeev Premi Signed-off-by: Sandeep Paulraj --- arch/arm/include/asm/omap_gpio.h | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'arch/arm/include/asm') diff --git a/arch/arm/include/asm/omap_gpio.h b/arch/arm/include/asm/omap_gpio.h index 8741572..516cc42 100644 --- a/arch/arm/include/asm/omap_gpio.h +++ b/arch/arm/include/asm/omap_gpio.h @@ -49,19 +49,4 @@ extern const struct gpio_bank *const omap_gpio_bank; #define METHOD_GPIO_24XX 4 -/* This is the interface */ - -/* Request a gpio before using it */ -int omap_request_gpio(int gpio); -/* Reset and free a gpio after using it */ -void omap_free_gpio(int gpio); -/* Sets the gpio as input or output */ -void omap_set_gpio_direction(int gpio, int is_input); -/* Set or clear a gpio output */ -void omap_set_gpio_dataout(int gpio, int enable); -/* Get the value of a gpio input */ -int omap_get_gpio_datain(int gpio); -/* Get the value of a gpio output */ -int omap_get_gpio_dataout(int gpio); - #endif /* _GPIO_H_ */ -- cgit v1.1