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>
This commit is contained in:
Magnus Damm 2008-10-21 21:31:07 +09:00 committed by Paul Mundt
parent 3b495513a2
commit ed0b2ef55a
1 changed files with 1 additions and 1 deletions

View File

@ -432,7 +432,7 @@ static int __gpio_get_set_value(struct pinmux_info *gpioc,
BUG(); BUG();
else else
value = read_write_reg(dr->reg, dr->reg_width, value = read_write_reg(dr->reg, dr->reg_width,
1, bit, value, do_write); 1, bit, !!value, do_write);
return value; return value;
} }