aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/clk/mediatek/clk-gate.h
diff options
context:
space:
mode:
authorGeliang Tang <geliangtang@163.com>2016-01-08 23:51:46 +0800
committerStephen Boyd <sboyd@codeaurora.org>2016-01-29 12:59:50 -0800
commit5fd9c05c846db98319e75496612da24435cee208 (patch)
treeeea4db5c7285b5bfe3173b085c3880bdb4277100 /drivers/clk/mediatek/clk-gate.h
parentclk: xgene: Remove return from void function (diff)
downloadlinux-dev-5fd9c05c846db98319e75496612da24435cee208.tar.xz
linux-dev-5fd9c05c846db98319e75496612da24435cee208.zip
clk: move the common clock's to_clk_*(_hw) macros to clk-provider.h
to_clk_*(_hw) macros have been repeatedly defined in many places. This patch moves all the to_clk_*(_hw) definitions in the common clock framework to public header clk-provider.h, and drop the local definitions. Signed-off-by: Geliang Tang <geliangtang@163.com> Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Diffstat (limited to 'drivers/clk/mediatek/clk-gate.h')
-rw-r--r--drivers/clk/mediatek/clk-gate.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/mediatek/clk-gate.h b/drivers/clk/mediatek/clk-gate.h
index 11e25c992948..b1821603b887 100644
--- a/drivers/clk/mediatek/clk-gate.h
+++ b/drivers/clk/mediatek/clk-gate.h
@@ -29,7 +29,7 @@ struct mtk_clk_gate {
u8 bit;
};
-static inline struct mtk_clk_gate *to_clk_gate(struct clk_hw *hw)
+static inline struct mtk_clk_gate *to_mtk_clk_gate(struct clk_hw *hw)
{
return container_of(hw, struct mtk_clk_gate, hw);
}