aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/clk/clk-fixed-rate.c
diff options
context:
space:
mode:
authorStephen Boyd <sboyd@kernel.org>2019-08-30 08:09:15 -0700
committerStephen Boyd <sboyd@kernel.org>2020-01-05 13:34:37 -0800
commit38d1e38093b7d85ed0fa3a28c13c3266db505b3b (patch)
treea949da9c4e003cd090e16864a0810ed50d5879ae /drivers/clk/clk-fixed-rate.c
parentclk: fixed-rate: Remove clk_register_fixed_rate_with_accuracy() (diff)
downloadwireguard-linux-38d1e38093b7d85ed0fa3a28c13c3266db505b3b.tar.xz
wireguard-linux-38d1e38093b7d85ed0fa3a28c13c3266db505b3b.zip
clk: fixed-rate: Move to_clk_fixed_rate() to C file
The only user of this macro is the fixed rate basic type. Move it there to avoid polluting provider drivers. Cc: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> Signed-off-by: Stephen Boyd <sboyd@kernel.org> Link: https://lkml.kernel.org/r/20190830150923.259497-5-sboyd@kernel.org
Diffstat (limited to 'drivers/clk/clk-fixed-rate.c')
-rw-r--r--drivers/clk/clk-fixed-rate.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/clk/clk-fixed-rate.c b/drivers/clk/clk-fixed-rate.c
index 80149912e21d..557641ec4fd7 100644
--- a/drivers/clk/clk-fixed-rate.c
+++ b/drivers/clk/clk-fixed-rate.c
@@ -24,6 +24,8 @@
* parent - fixed parent. No clk_set_parent support
*/
+#define to_clk_fixed_rate(_hw) container_of(_hw, struct clk_fixed_rate, hw)
+
static unsigned long clk_fixed_rate_recalc_rate(struct clk_hw *hw,
unsigned long parent_rate)
{