]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
switch to gpio_direction_output (OMAP and mainline)
authorDavid Brownell <dbrownell@users.sourceforge.net>
Thu, 30 Oct 2008 07:36:04 +0000 (00:36 -0700)
committerTony Lindgren <tony@atomide.com>
Thu, 13 Nov 2008 21:30:11 +0000 (13:30 -0800)
commit4edabe6829abcdd3f11fed6d53dd961e67ed0af9
treebc156f22d0ba8636b66005e761f4cec51855c7ed
parentf03fdeddbbaafb57f0f62629a316036f270a973d
switch to gpio_direction_output (OMAP and mainline)

More conversion to the standard GPIO interfaces:  stop using
omap_set_gpio_direction() entirely, and switch over to the
gpio_direction_output() call.

Note that because gpio_direction_output() includes the initial
value, this change isn't quite transparent.

 - For the call sites which defined an initial value either
   before or after setting the direction, that value was used.

   When that value was previously assigned afterwards, this
   could eliminate a brief output glitch ... and possibly
   change behavior.  In a few cases (LCDs) several values
   were assigned together ... those were re-arranged to match
   the explicit sequence provided.

 - Some call sites didn't define such a value; so I chose an
   initial "off/reset" value that seemed to default to "off".

In short, files touched by this patch might notice some small
changes in startup behavior (with trivial fixes).

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap1/board-h2.c
arch/arm/mach-omap1/board-palmz71.c
arch/arm/mach-omap1/board-sx1.c
arch/arm/mach-omap1/board-voiceblue.c
arch/arm/mach-omap1/leds.c
arch/arm/mach-omap2/board-apollon.c
arch/arm/plat-omap/gpio.c
arch/arm/plat-omap/include/mach/gpio.h