OSDN Git Service

pinctrl/rockchip: add pinctrl device to gpio bank struct
authorJianqun Xu <jay.xu@rock-chips.com>
Mon, 16 Aug 2021 01:19:42 +0000 (09:19 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 16 Aug 2021 23:01:49 +0000 (01:01 +0200)
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>
drivers/pinctrl/pinctrl-rockchip.h

index dba9e95..4aa3d2f 100644 (file)
@@ -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;