summaryrefslogtreecommitdiffstats
path: root/fs/d_path.c
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert+renesas@glider.be>2018-12-13 15:20:13 +0100
committerGeert Uytterhoeven <geert+renesas@glider.be>2018-12-18 11:25:56 +0100
commitce16e8dd0db2701265e6dfdb4fbed632b6ff61c2 (patch)
tree7fc31fd433c5b04e0d3d33d697b49b4c509b3103 /fs/d_path.c
parent054f2400f706327f96770219c3065b5131f8f154 (diff)
downloadlinux-ce16e8dd0db2701265e6dfdb4fbed632b6ff61c2.tar.bz2
pinctrl: sh-pfc: Print actual field width for variable-width fields
The debug code in sh_pfc_write_config_reg() prints the width of the field being modified. However, registers with a variable-width field layout are identified by pinmux_cfg_reg.field_width being zero, hence zeroes are printed instead of the actual field widths. Fix this by printing the Hamming weight of the field mask instead, which is correct for both fixed-width and variable-width fields. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Reviewed-by: Simon Horman <horms+renesas@verge.net.au>
Diffstat (limited to 'fs/d_path.c')
0 files changed, 0 insertions, 0 deletions