OSDN Git Service

pinctrl: intel: merrifield: Introduce mrfld_read_bufcfg()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Sat, 22 Sep 2018 13:51:15 +0000 (16:51 +0300)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 25 Sep 2018 10:44:41 +0000 (12:44 +0200)
commit5e0b7e7cd27da0dda51d7d840398621b0cffa0a1
tree9689c50ed9f1c731107f0113c40cdf62c012f5b4
parenta4925311a5443126ecc90671a1604ea7b0f5b32e
pinctrl: intel: merrifield: Introduce mrfld_read_bufcfg()

mrfld_read_bufcfg() helper checks if pin is correct and reads back
the current value of corresponding BUFCFG register.

While it adds lines of code it will be easier to maintain in the future.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/intel/pinctrl-merrifield.c