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

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

sh: pfc: get_config_reg() shift clean up



Clean up the f_width shift code in get_config_reg().

Reported-by: default avatarRyusuke Sakato <ryusuke.sakato.bx@renesas.com>
Signed-off-by: default avatarMagnus Damm <damm@opensource.se>
Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
parent 52e3124f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -217,7 +217,7 @@ static int get_config_reg(struct pinmux_info *gpioc, pinmux_enum_t enum_id,

		if (!r_width)
			break;
		for (n = 0; n < (r_width / f_width) * 1 << f_width; n++) {
		for (n = 0; n < (r_width / f_width) * (1 << f_width); n++) {
			if (config_reg->enum_ids[n] == enum_id) {
				*crp = config_reg;
				*indexp = n;