]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
pinctrl: sh-pfc: Use u32 to store register data
authorGeert Uytterhoeven <geert+renesas@glider.be>
Fri, 27 Feb 2015 17:38:04 +0000 (18:38 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 18 Mar 2015 01:02:13 +0000 (02:02 +0100)
commitfc88936ad307dc57cd26cb53455a57e2dd0813b9
tree9117b60af907386529dbd5639d5555df28dc8165
parentcbd159ed4f9277e8989bd8f7513a3245562a6bee
pinctrl: sh-pfc: Use u32 to store register data

As PFC registers are either 8, 16, or 32 bits wide, use u32 (mostly
replacing unsigned long) to store (parts of) register values and masks.

Switch the shadow register operations from {set,clear}_bit() to plain C
bit operations, as the former can operate on long data only.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/sh-pfc/core.c
drivers/pinctrl/sh-pfc/core.h
drivers/pinctrl/sh-pfc/gpio.c