aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/clk/mediatek/clk-gate.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/clk/mediatek/clk-gate.c')
-rw-r--r--drivers/clk/mediatek/clk-gate.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/clk/mediatek/clk-gate.c b/drivers/clk/mediatek/clk-gate.c
index 576bdb7c98b8..2a76901bf04b 100644
--- a/drivers/clk/mediatek/clk-gate.c
+++ b/drivers/clk/mediatek/clk-gate.c
@@ -25,7 +25,7 @@
25 25
26static int mtk_cg_bit_is_cleared(struct clk_hw *hw) 26static int mtk_cg_bit_is_cleared(struct clk_hw *hw)
27{ 27{
28 struct mtk_clk_gate *cg = to_clk_gate(hw); 28 struct mtk_clk_gate *cg = to_mtk_clk_gate(hw);
29 u32 val; 29 u32 val;
30 30
31 regmap_read(cg->regmap, cg->sta_ofs, &val); 31 regmap_read(cg->regmap, cg->sta_ofs, &val);
@@ -37,7 +37,7 @@ static int mtk_cg_bit_is_cleared(struct clk_hw *hw)
37 37
38static int mtk_cg_bit_is_set(struct clk_hw *hw) 38static int mtk_cg_bit_is_set(struct clk_hw *hw)
39{ 39{
40 struct mtk_clk_gate *cg = to_clk_gate(hw); 40 struct mtk_clk_gate *cg = to_mtk_clk_gate(hw);
41 u32 val; 41 u32 val;
42 42
43 regmap_read(cg->regmap, cg->sta_ofs, &val); 43 regmap_read(cg->regmap, cg->sta_ofs, &val);
@@ -49,14 +49,14 @@ static int mtk_cg_bit_is_set(struct clk_hw *hw)
49 49
50static void mtk_cg_set_bit(struct clk_hw *hw) 50static void mtk_cg_set_bit(struct clk_hw *hw)
51{ 51{
52 struct mtk_clk_gate *cg = to_clk_gate(hw); 52 struct mtk_clk_gate *cg = to_mtk_clk_gate(hw);
53 53
54 regmap_write(cg->regmap, cg->set_ofs, BIT(cg->bit)); 54 regmap_write(cg->regmap, cg->set_ofs, BIT(cg->bit));
55} 55}
56 56
57static void mtk_cg_clr_bit(struct clk_hw *hw) 57static void mtk_cg_clr_bit(struct clk_hw *hw)
58{ 58{
59 struct mtk_clk_gate *cg = to_clk_gate(hw); 59 struct mtk_clk_gate *cg = to_mtk_clk_gate(hw);
60 60
61 regmap_write(cg->regmap, cg->clr_ofs, BIT(cg->bit)); 61 regmap_write(cg->regmap, cg->clr_ofs, BIT(cg->bit));
62} 62}