From: Magnus Damm Date: Tue, 21 Oct 2008 12:31:07 +0000 (+0900) Subject: sh: Update gpio_set_value() pin value handling X-Git-Tag: v2.6.28-rc1~27^2~7 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=ed0b2ef55a393b96211e209f26544f2f180b0fe8;p=linux-2.6-omap-h63xx.git sh: Update gpio_set_value() pin value handling This patch updates the pinmux code to use the boolean value for the function gpio_set_value(). Without this patch values other than 0 and 1 will result in incorrect GPIO settings. Signed-off-by: Magnus Damm Signed-off-by: Paul Mundt --- diff --git a/arch/sh/kernel/gpio.c b/arch/sh/kernel/gpio.c index bb8b812c689..9ac0b8e6c21 100644 --- a/arch/sh/kernel/gpio.c +++ b/arch/sh/kernel/gpio.c @@ -432,7 +432,7 @@ static int __gpio_get_set_value(struct pinmux_info *gpioc, BUG(); else value = read_write_reg(dr->reg, dr->reg_width, - 1, bit, value, do_write); + 1, bit, !!value, do_write); return value; }