diff options
author | Paul Cercueil <paul@crapouillou.net> | 2020-01-07 02:27:08 +0300 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2020-01-07 15:57:17 +0300 |
commit | baf15647387e82c18933fcf6c9c2dd77e18e950f (patch) | |
tree | e4678f21290116a4f6a4b3fbcaed7edf4dbfef76 /drivers/pinctrl/tegra/pinctrl-tegra210.c | |
parent | 5ec008bfac7da212fa0d3dea6d30c372bd7034f2 (diff) | |
download | linux-baf15647387e82c18933fcf6c9c2dd77e18e950f.tar.xz |
pinctrl: ingenic: Put ingenic_chip_info pointer in match data
Instead of passing a numeric ID as match data, and retrieve a pointer to
the ingenic_chip_info structure in an ugly succession of if/else in the
probe function, get the pointer to the ingenic_chip_info structure
directly from the match data, and store the numeric ID inside the
ingenic_chip_info structure.
Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Link: https://lore.kernel.org/r/20200106232711.559727-3-paul@crapouillou.net
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/tegra/pinctrl-tegra210.c')
0 files changed, 0 insertions, 0 deletions