]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
pinctrl: sh-pfc: Drop width parameter of sh_pfc_{read,write}_reg()
authorGeert Uytterhoeven <geert+renesas@glider.be>
Fri, 29 Sep 2017 09:03:11 +0000 (11:03 +0200)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Fri, 20 Oct 2017 09:36:56 +0000 (11:36 +0200)
commite16a2c7aced8422cda2b7f13ea3f3daccb150db6
tree0a2124b9e736b88094ee318e6bf51febb175db95
parent35406b1fd68dec6d8b1badd69fcfb65646745dfd
pinctrl: sh-pfc: Drop width parameter of sh_pfc_{read,write}_reg()

On modern Renesas SoCs, all PFC registers are 32-bit, and all callers of
sh_pfc_{read,write}_reg() already operate on 32-bit registers only.
Hence make the 32-bit width implicit, and rename the functions to
sh_pfc_{read,write}() to shorten lines.

All accesses to 8-bit or 16-bit registers are still done using
sh_pfc_{read,write}_raw_reg().

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
drivers/pinctrl/sh-pfc/core.c
drivers/pinctrl/sh-pfc/core.h
drivers/pinctrl/sh-pfc/pfc-r8a7795-es1.c
drivers/pinctrl/sh-pfc/pfc-r8a7795.c
drivers/pinctrl/sh-pfc/pfc-r8a7796.c
drivers/pinctrl/sh-pfc/pinctrl.c