lkml.org 
[lkml]   [2021]   [May]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 2/7] pinctrl/pinctrl-rockchip.h: add pinctrl device to gpio bank struct
    Date
    Store a pointer from the pinctrl device for the gpio bank.

    Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
    ---
    drivers/pinctrl/pinctrl-rockchip.h | 2 ++
    1 file changed, 2 insertions(+)

    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;
    --
    2.25.1


    \
     
     \ /
      Last update: 2021-05-10 08:37    [W:4.332 / U:0.008 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site