pinctrl: uniphier: refactor drive strength get/set functions
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Wed, 10 Jan 2018 08:34:14 +0000 (17:34 +0900)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 11 Jan 2018 09:40:23 +0000 (10:40 +0100)
commitfb36a7b07dbf565014ed624a1bfd24d807f56b85
tree272c84cee68c85d9986598232008674fa962fac2
parentd6093367bc743bc6679ab75a89cd3dd93476a755
pinctrl: uniphier: refactor drive strength get/set functions

There is code duplication between uniphier_conf_pin_drive_get() and
uniphier_conf_pin_drive_set().  Factor out the common code into
uniphier_conf_get_drvctrl_data().

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