mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-05 08:26:59 +00:00
sh: pfc: get_config_reg() shift clean up
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> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
This commit is contained in:
parent
52e3124f24
commit
c63bcc6ff1
1 changed files with 1 additions and 1 deletions
|
@ -217,7 +217,7 @@ static int get_config_reg(struct pinmux_info *gpioc, pinmux_enum_t enum_id,
|
||||||
|
|
||||||
if (!r_width)
|
if (!r_width)
|
||||||
break;
|
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) {
|
if (config_reg->enum_ids[n] == enum_id) {
|
||||||
*crp = config_reg;
|
*crp = config_reg;
|
||||||
*indexp = n;
|
*indexp = n;
|
||||||
|
|
Loading…
Reference in a new issue