Skip to content

Commit 5f82afd

Browse files
jayxurockchiplinusw
authored andcommitted
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Linus Walleij <[email protected]>
1 parent e145069 commit 5f82afd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/pinctrl/pinctrl-rockchip.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ struct rockchip_drv {
8181

8282
/**
8383
* struct rockchip_pin_bank
84+
* @dev: the pinctrl device bind to the bank
8485
* @reg_base: register base of the gpio bank
8586
* @regmap_pull: optional separate register for additional pull settings
8687
* @clk: clock of the gpio bank
@@ -105,6 +106,7 @@ struct rockchip_drv {
105106
* @route_mask: bits describing the routing pins of per bank
106107
*/
107108
struct rockchip_pin_bank {
109+
struct device *dev;
108110
void __iomem *reg_base;
109111
struct regmap *regmap_pull;
110112
struct clk *clk;

0 commit comments

Comments
 (0)