OSDN Git Service

pinctrl: uniphier: omit redundant input enable bit information
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Mon, 31 Jul 2017 06:21:09 +0000 (15:21 +0900)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 14 Aug 2017 13:01:00 +0000 (15:01 +0200)
commit4e7679834be447c3a3f91246b6d533b127386e94
treed0e44672f4908868e156feae7078fa04079d65e0
parent7f6ee0a5791bf78b01232c290ce548159ceebfe2
pinctrl: uniphier: omit redundant input enable bit information

For LD11/20 SoCs (capable of per-pin input enable), the iectrl bit
number matches its pin number.  So, this is redundant information.
Instead, we just need a flag to know if the iectrl gating exists or not.

With this refactoring, 5 bits in pin data will be saved.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/uniphier/pinctrl-uniphier-core.c
drivers/pinctrl/uniphier/pinctrl-uniphier-ld11.c
drivers/pinctrl/uniphier/pinctrl-uniphier-ld20.c
drivers/pinctrl/uniphier/pinctrl-uniphier.h