Skip to contentSkip to conversation

sh: pfc: get_config_reg() shift clean up

PATCH New Magnus Damm 1 participant 1 message Oct 17, 2011 SuperH

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sh: pfc: get_config_reg() shift clean up

From: Magnus Damm <[email protected]>

Clean up the f_width shift code in get_config_reg().

---

 drivers/sh/pfc.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/sh/pfc.c +1 -1
@@ -217,7 +217,7 @@ static int get_config_reg(struct pinmux_
 
 		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;