]> git.baikalelectronics.ru Git - 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)
commit64ba741d4506a4e998038c1904480f3868021064
tree0a2124b9e736b88094ee318e6bf51febb175db95
parent10c4143d0c1d743c0a47f149d608ae5f7d72966c
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