forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 61598093bbdd283a7edc367d900f223070ead8d2
kernel/drivers/clk/qcom/clk-regmap.h
....@@ -24,7 +24,11 @@
2424 unsigned int enable_mask;
2525 bool enable_is_inverted;
2626 };
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
+}
2832
2933 int clk_is_enabled_regmap(struct clk_hw *hw);
3034 int clk_enable_regmap(struct clk_hw *hw);