summaryrefslogtreecommitdiff
path: root/drivers/pinctrl/tegra/pinctrl-tegra210.c
diff options
context:
space:
mode:
authorPaul Cercueil <paul@crapouillou.net>2020-01-07 02:27:08 +0300
committerLinus Walleij <linus.walleij@linaro.org>2020-01-07 15:57:17 +0300
commitbaf15647387e82c18933fcf6c9c2dd77e18e950f (patch)
treee4678f21290116a4f6a4b3fbcaed7edf4dbfef76 /drivers/pinctrl/tegra/pinctrl-tegra210.c
parent5ec008bfac7da212fa0d3dea6d30c372bd7034f2 (diff)
downloadlinux-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