All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] sh: pfc: get_config_reg() shift clean up
@ 2011-10-17  9:01 Magnus Damm
  0 siblings, 0 replies; only message in thread
From: Magnus Damm @ 2011-10-17  9:01 UTC (permalink / raw)
  To: linux-sh

From: Magnus Damm <damm@opensource.se>

Clean up the f_width shift code in get_config_reg().

Reported-by: Ryusuke Sakato <ryusuke.sakato.bx@renesas.com>
Signed-off-by: Magnus Damm <damm@opensource.se>
---

 drivers/sh/pfc.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- 0005/drivers/sh/pfc.c
+++ work/drivers/sh/pfc.c	2011-10-14 20:11:19.000000000 +0900
@@ -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;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-10-17  9:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-17  9:01 [PATCH] sh: pfc: get_config_reg() shift clean up Magnus Damm

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.