Skip to content

Commit

Permalink
pinctrl/rockchip: add pinctrl device to gpio bank struct
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jianqun Xu authored and Linus Walleij committed Aug 16, 2021
1 parent e145069 commit 5f82afd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/pinctrl/pinctrl-rockchip.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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;
Expand Down

0 comments on commit 5f82afd

Please sign in to comment.