diff options
author | Magnus Damm <damm@igel.co.jp> | 2008-10-21 16:31:07 +0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2008-10-21 16:41:23 +0400 |
commit | ed0b2ef55a393b96211e209f26544f2f180b0fe8 (patch) | |
tree | 4f3e0a3bda4172a65d0f833d3d365e39ff60bb27 /arch/sh | |
parent | 3b495513a2a033d401eba213327c1525d863eb9b (diff) | |
download | linux-ed0b2ef55a393b96211e209f26544f2f180b0fe8.tar.xz |
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 <damm@igel.co.jp>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh')
-rw-r--r-- | arch/sh/kernel/gpio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sh/kernel/gpio.c b/arch/sh/kernel/gpio.c index bb8b812c6895..9ac0b8e6c217 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; } |