Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=29c349d22ccda5678a7dfb732093dbd3befcefa3
Commit:     29c349d22ccda5678a7dfb732093dbd3befcefa3
Parent:     b6b27ae5e85fb193c08448157943b187958b8ca2
Author:     Bill Gatliff <[EMAIL PROTECTED]>
AuthorDate: Thu May 31 16:17:16 2007 +0100
Committer:  Russell King <[EMAIL PROTECTED]>
CommitDate: Sat Jun 2 21:31:48 2007 +0100

    [ARM] 4422/1: Fix default value handling in gpio_direction_output (PXA)
    
    The default value passed through to pxa_gpio_mode() is lost
    due to a missing GPIO_DFLT_HIGH mask for nonzero values.  The enclosed
    patch fixes this programming error.
    
    Signed-off-by: Bill Gatliff <[EMAIL PROTECTED]>
    Signed-off-by: Russell King <[EMAIL PROTECTED]>
---
 include/asm-arm/arch-pxa/gpio.h |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/include/asm-arm/arch-pxa/gpio.h b/include/asm-arm/arch-pxa/gpio.h
index aeba243..9e99241 100644
--- a/include/asm-arm/arch-pxa/gpio.h
+++ b/include/asm-arm/arch-pxa/gpio.h
@@ -45,7 +45,8 @@ static inline int gpio_direction_input(unsigned gpio)
 
 static inline int gpio_direction_output(unsigned gpio, int value)
 {
-       return pxa_gpio_mode(gpio | GPIO_OUT | (value ? 0 : GPIO_DFLT_LOW));
+       return pxa_gpio_mode(gpio | GPIO_OUT |
+                         (value ? GPIO_DFLT_HIGH : GPIO_DFLT_LOW));
 }
 
 static inline int __gpio_get_value(unsigned gpio)
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to