clk: mediatek: mux: Internalize struct mtk_clk_mux
authorChen-Yu Tsai <wenst@chromium.org>
Tue, 8 Feb 2022 12:40:13 +0000 (20:40 +0800)
committerStephen Boyd <sboyd@kernel.org>
Thu, 17 Feb 2022 20:12:22 +0000 (12:12 -0800)
struct mtk_clk_mux is an implementation detail of the mux clk type,
and is not used outside of the implementation.

Internalize the definition to minimize leakage of details and shrink
the header file.

Signed-off-by: Chen-Yu Tsai <wenst@chromium.org>
Reviewed-by: Miles Chen <miles.chen@mediatek.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://lore.kernel.org/r/20220208124034.414635-11-wenst@chromium.org
Reviewed-by: Chun-Jie Chen <chun-jie.chen@mediatek.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/mediatek/clk-mux.c
drivers/clk/mediatek/clk-mux.h

index 6f0c22a699c3665ffa93f55025152f0bd71ee7b1..2d4d8dc0120a3e128294720365620f286be2450b 100644 (file)
 #include "clk-mtk.h"
 #include "clk-mux.h"
 
+struct mtk_clk_mux {
+       struct clk_hw hw;
+       struct regmap *regmap;
+       const struct mtk_mux *data;
+       spinlock_t *lock;
+       bool reparent;
+};
+
 static inline struct mtk_clk_mux *to_mtk_clk_mux(struct clk_hw *hw)
 {
        return container_of(hw, struct mtk_clk_mux, hw);
index cb2ac4f04c587449ad10194a7c4c45c326866979..38a2b6014b08125eb5ee2b7515f295dd11b0eecd 100644 (file)
@@ -9,14 +9,6 @@
 
 #include <linux/clk-provider.h>
 
-struct mtk_clk_mux {
-       struct clk_hw hw;
-       struct regmap *regmap;
-       const struct mtk_mux *data;
-       spinlock_t *lock;
-       bool reparent;
-};
-
 struct mtk_mux {
        int id;
        const char *name;