kernel/drivers/clk/qcom/clk-regmap.h
.. .. @@ -24,7 +24,11 @@ 24 24 unsigned int enable_mask; 25 25 bool enable_is_inverted; 26 26 }; 27 -#define to_clk_regmap(_hw) container_of(_hw, struct clk_regmap, hw)27 +28 +static inline struct clk_regmap *to_clk_regmap(struct clk_hw *hw)29 +{30 + return container_of(hw, struct clk_regmap, hw);31 +}28 32 29 33 int clk_is_enabled_regmap(struct clk_hw *hw); 30 34 int clk_enable_regmap(struct clk_hw *hw);