diff options
author | Jianqun Xu <jay.xu@rock-chips.com> | 2021-08-16 03:19:42 +0200 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2021-08-17 01:01:49 +0200 |
commit | 5f82afd868a04f65630c22f75b40c60cba418b8e (patch) | |
tree | 901c72ea95393fbebe7378e538d33e888a583b0f /drivers/pinctrl/pinctrl-rockchip.h | |
parent | pinctrl/rockchip: separate struct rockchip_pin_bank to a head file (diff) | |
download | linux-5f82afd868a04f65630c22f75b40c60cba418b8e.tar.xz linux-5f82afd868a04f65630c22f75b40c60cba418b8e.zip |
pinctrl/rockchip: add pinctrl device to gpio bank struct
Store a pointer from the pinctrl device for the gpio bank.
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
Link: https://lore.kernel.org/r/20210816011948.1118959-4-jay.xu@rock-chips.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/pinctrl-rockchip.h')
-rw-r--r-- | drivers/pinctrl/pinctrl-rockchip.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/pinctrl/pinctrl-rockchip.h b/drivers/pinctrl/pinctrl-rockchip.h index dba9e9540633..4aa3d2f1fa67 100644 --- a/drivers/pinctrl/pinctrl-rockchip.h +++ b/drivers/pinctrl/pinctrl-rockchip.h @@ -81,6 +81,7 @@ struct rockchip_drv { /** * struct rockchip_pin_bank + * @dev: the pinctrl device bind to the bank * @reg_base: register base of the gpio bank * @regmap_pull: optional separate register for additional pull settings * @clk: clock of the gpio bank @@ -105,6 +106,7 @@ struct rockchip_drv { * @route_mask: bits describing the routing pins of per bank */ struct rockchip_pin_bank { + struct device *dev; void __iomem *reg_base; struct regmap *regmap_pull; struct clk *clk; |