diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2015-09-03 02:49:14 +0000 |
---|---|---|
committer | Geert Uytterhoeven <geert+renesas@glider.be> | 2015-10-02 09:54:35 +0200 |
commit | 2b67bccb478773347717d21781cf2bfd6db5c9fd (patch) | |
tree | 0bb3e1063c4e176577de3b0746c4c53a83af41af /drivers/pinctrl/nomadik/pinctrl-nomadik-db8540.c | |
parent | 4adeabd042422ceecd7605961d785c5c3edab9e1 (diff) | |
download | blackbird-op-linux-2b67bccb478773347717d21781cf2bfd6db5c9fd.tar.gz blackbird-op-linux-2b67bccb478773347717d21781cf2bfd6db5c9fd.zip |
pinctrl: sh-pfc: modify PINMUX_IPSR_MSEL() macro order
The difference between PINMUX_IPSR_MSEL() and PINMUX_IPSR_MODSEL_DATA()
are FN_xxx order, and PINMUX_IPSR_MSEL() is used only from r8a7778.
Now it r8a7778 works correctly with PINMUX_IPSR_MODSEL_DATA() order.
This means we can merge PINMUX_IPSR_MSEL() and PINMUX_IPSR_MODSEL_DATA().
Current PFC driver is very difficult to read, because macro names are
using different length. Especially PINMUX_IPSR_MODSEL_DATA() is well
used macro
PINMUX_IPSR_NOGP(ispr, ...)
PINMUX_IPSR_DATA(ipsr, ...)
PINMUX_IPSR_NOGM(ispr, ...)
PINMUX_IPSR_NOFN(ipsr, ...)
PINMUX_IPSR_MSEL(ipsr, ...)
PINMUX_IPSR_MODSEL_DATA(ipsr, ...)
It can be readable if we can merge
PINMUX_IPSR_MSEL() and PINMUX_IPSR_MODSEL_DATA()
PINMUX_IPSR_NOGP(ispr, ...)
PINMUX_IPSR_DATA(ipsr, ...)
PINMUX_IPSR_NOGM(ispr, ...)
PINMUX_IPSR_NOFN(ipsr, ...)
PINMUX_IPSR_MSEL(ipsr, ...)
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Acked-by: Simon Horman <horms+renesas@verge.net.au>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Diffstat (limited to 'drivers/pinctrl/nomadik/pinctrl-nomadik-db8540.c')
0 files changed, 0 insertions, 0 deletions