提交 ed0b2ef5 编写于 作者: M Magnus Damm 提交者: Paul Mundt

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: NMagnus Damm <damm@igel.co.jp>
Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
上级 3b495513
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册