]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - drivers/pinctrl/sh-pfc/pinctrl.c
pinctrl: sh-pfc: refactor voltage setting
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Mon, 6 Jun 2016 16:08:25 +0000 (18:08 +0200)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Fri, 10 Jun 2016 07:00:19 +0000 (09:00 +0200)
commit8775306dcf48092ff9520463699f8fb373ceb57e
tree0eb508dcb23e771a0a3234539fb0332341c49d3f
parent1a695a905c18548062509178b98bc91e67510864
pinctrl: sh-pfc: refactor voltage setting

All known hardware being able to switch voltages has the same POCCTRL
register. So, factor out the common code to the core and keep only
the pin-to-bit mapping SoC specific. Convert the only user, r8a7790.
In case POCCTRL should ever get more complex (more voltages to select?),
we should probably switch over to a describing array like drive strength
does currently.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
drivers/pinctrl/sh-pfc/pfc-r8a7790.c
drivers/pinctrl/sh-pfc/pinctrl.c
drivers/pinctrl/sh-pfc/sh_pfc.h