From: Geert Uytterhoeven Date: Thu, 12 Mar 2015 10:09:15 +0000 (+0100) Subject: pinctrl: sh-pfc: Use reg_width instead of reg as sentinel X-Git-Tag: omap-for-v4.2/o2_dc~138^2~32 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=17c7cbb0e7b7a877f1ce2063d7f869801b24cd6a;p=pandora-kernel.git pinctrl: sh-pfc: Use reg_width instead of reg as sentinel All other loops over sh_pfc_soc_info.data_regs[] use pinmux_data_reg.regwidth as the sentinel, which is safer as zero is never a valid regwidth value (reg could be zero if we start using it to store an offset). Signed-off-by: Geert Uytterhoeven Acked-by: Laurent Pinchart Signed-off-by: Linus Walleij --- Reading git-diff-tree failed