Thread (11 messages) 11 messages, 4 authors, 2015-03-18

Re: [PATCH v2 2/4] pinctrl: sh-pfc: Use unsigned int for register/field widths and offsets

From: Geert Uytterhoeven <geert@linux-m68k.org>
Date: 2015-03-12 07:49:50
Also in: linux-sh

On Thu, Mar 12, 2015 at 2:00 AM, Laurent Pinchart
[off-list ref] wrote:
quoted
@@ -322,13 +319,15 @@ int sh_pfc_config_mux(struct sh_pfc *pfc, unsigned
mark, int pinmux_type) return -EINVAL;
      }

-     pos = 0;
-     enum_id = 0;
-     field = 0;
-     value = 0;
-
      /* Iterate over all the configuration fields we need to update. */
      while (1) {
+             const struct pinmux_cfg_reg *cr = NULL;
+             unsigned int field = 0;
+             u16 enum_id = 0;
+             u32 value = 0;
There's no need to initialize field, enum_id and value to 0 here.
And cr.
With that fixed,
Will update and resend.
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Thanks!

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help