]> Git Repo - linux.git/commit
pinctrl: sh-pfc: refactor voltage setting
authorWolfram Sang <[email protected]>
Mon, 6 Jun 2016 16:08:25 +0000 (18:08 +0200)
committerGeert Uytterhoeven <[email protected]>
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 <[email protected]>
Signed-off-by: Geert Uytterhoeven <[email protected]>
drivers/pinctrl/sh-pfc/pfc-r8a7790.c
drivers/pinctrl/sh-pfc/pinctrl.c
drivers/pinctrl/sh-pfc/sh_pfc.h
This page took 0.066933 seconds and 4 git commands to generate.