]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit - drivers/leds/leds-omap.c
use gpio_direction_output (OMAP tree only)
authorDavid Brownell <dbrownell@users.sourceforge.net>
Thu, 30 Oct 2008 07:33:53 +0000 (00:33 -0700)
committerTony Lindgren <tony@atomide.com>
Thu, 13 Nov 2008 21:29:50 +0000 (13:29 -0800)
commit570f10b7d3aaa3d542b749622df2a1f86e54ebc3
treee0bc3949eb185447bd299f4ac8ca4a5e94fbd0a6
parentfc571d5fcc32b1ee3f9d6aa38b731278970499d8
use gpio_direction_output (OMAP tree only)

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>
15 files changed:
arch/arm/mach-omap2/board-2430sdp.c
arch/arm/mach-omap2/board-n800-camera.c
arch/arm/mach-omap2/board-n800-mmc.c
arch/arm/mach-omap2/board-n800-usb.c
arch/arm/mach-omap2/board-n800.c
drivers/bluetooth/brf6150.c
drivers/bluetooth/hci_h4p/core.c
drivers/cbus/cbus.c
drivers/leds/leds-omap.c
drivers/spi/tsc2301-core.c
drivers/usb/host/ehci-omap.c
drivers/video/omap/lcd_2430sdp.c
drivers/video/omap/lcd_omap2evm.c
drivers/video/omap/lcd_omap3evm.c
drivers/video/omap/lcd_p2.c