pinctrl: sh-pfc: r8a7778: Use lookup function for bias data
authorNiklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Sat, 12 Nov 2016 16:04:28 +0000 (17:04 +0100)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Wed, 16 Nov 2016 09:29:11 +0000 (10:29 +0100)
commit5c296f69ab71c9a91bc7992b549eda824dfc4a43
treebcbd62e9ca58e7b92b2ee463c50c2b6b72269c9a
parentd3b861bccdee2fa9963a2b6c64f74a8d752b9315
pinctrl: sh-pfc: r8a7778: Use lookup function for bias data

Change the data structure and use the generic sh_pfc_pin_to_bias_info()
function to get the register offset and bit information.

Suggested-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
drivers/pinctrl/sh-pfc/pfc-r8a7778.c