ARM: OMAP: switch to standard gpio get/set calls
This patch replaces some legacy OMAP GPIO calls with the "new" (not really, any more!) calls that work on most platforms. The calls addressed by this patch are the simple ones to get and set values ... for code that's in mainline, including the implementations of those calls. Except for the declarations and definitions of those calls, all of these changes were performed by a simple SED script. Plus, a few "if() set() else set()" branches were merged by hand. Signed-off-by: David Brownell <dbrownell@users.sourceforge.net> Signed-off-by: Tony Lindgren <tony@atomide.com>
This commit is contained in:
committed by
Tony Lindgren
parent
a007b7096f
commit
0b84b5ca43
@ -44,8 +44,8 @@ static void mistral_setled(void)
|
||||
green = 1;
|
||||
/* else both sides are disabled */
|
||||
|
||||
omap_set_gpio_dataout(GPIO_LED_GREEN, green);
|
||||
omap_set_gpio_dataout(GPIO_LED_RED, red);
|
||||
gpio_set_value(GPIO_LED_GREEN, green);
|
||||
gpio_set_value(GPIO_LED_RED, red);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user