clk: mediatek: cpumux: Internalize struct mtk_clk_cpumux
authorChen-Yu Tsai <wenst@chromium.org>
Tue, 8 Feb 2022 12:40:10 +0000 (20:40 +0800)
committerStephen Boyd <sboyd@kernel.org>
Thu, 17 Feb 2022 20:12:22 +0000 (12:12 -0800)
struct mtk_clk_cpumux is an implementation detail of the cpumux 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-8-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-cpumux.c
drivers/clk/mediatek/clk-cpumux.h

index 99a819e3673fad42e0ae6e2f11cab6c11c2aa818..344c6399b22f19bab3bbfaf53bef2c86ae2410b5 100644 (file)
 #include "clk-mtk.h"
 #include "clk-cpumux.h"
 
+struct mtk_clk_cpumux {
+       struct clk_hw   hw;
+       struct regmap   *regmap;
+       u32             reg;
+       u32             mask;
+       u8              shift;
+};
+
 static inline struct mtk_clk_cpumux *to_mtk_clk_cpumux(struct clk_hw *_hw)
 {
        return container_of(_hw, struct mtk_clk_cpumux, hw);
index fda7770fd803b6eb48e343035e2ecec97a7eaa4e..a538f2bbef0d787decd252363d24bf9606df2c3f 100644 (file)
@@ -7,14 +7,6 @@
 #ifndef __DRV_CLK_CPUMUX_H
 #define __DRV_CLK_CPUMUX_H
 
-struct mtk_clk_cpumux {
-       struct clk_hw   hw;
-       struct regmap   *regmap;
-       u32             reg;
-       u32             mask;
-       u8              shift;
-};
-
 int mtk_clk_register_cpumuxes(struct device_node *node,
                              const struct mtk_composite *clks, int num,
                              struct clk_onecell_data *clk_data);