sh: pfc: get_config_reg() shift clean up
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().
Reported-by Ryusuke Sakato <[email protected]>
Signed-off-by Magnus Damm <[email protected]>
---
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;