Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ed0b2ef5 authored by Magnus Damm's avatar Magnus Damm Committed by Paul Mundt
Browse files

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: default avatarMagnus Damm <damm@igel.co.jp>
Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
parent 3b495513
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
}