diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2020-04-07 20:38:45 +0300 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2020-04-16 15:21:23 +0300 |
commit | 0874758ecb2b3faa200a86dda45dbc29335f883e (patch) | |
tree | d5849773ff6cdbca398b1638a1c48d8c5f7bb3c8 /drivers/pinctrl/pinctrl-artpec6.c | |
parent | 0521701c8d10f832a401cc7ebfa92bb73782d792 (diff) | |
download | linux-0874758ecb2b3faa200a86dda45dbc29335f883e.tar.xz |
pinctrl: mcp23s08: Refactor mcp23s08_spi_regmap_init()
There is a lot of duplication for one small helper function.
Refactor mcp23s08_spi_regmap_init() to prepare everything first
and then register regmap at the end.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20200407173849.43628-5-andriy.shevchenko@linux.intel.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/pinctrl-artpec6.c')
0 files changed, 0 insertions, 0 deletions