clk: fixed-rate: Move to_clk_fixed_rate() to C file
authorStephen Boyd <sboyd@kernel.org>
Fri, 30 Aug 2019 15:09:15 +0000 (08:09 -0700)
committerStephen Boyd <sboyd@kernel.org>
Sun, 5 Jan 2020 21:34:37 +0000 (13:34 -0800)
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
drivers/clk/clk-fixed-rate.c
include/linux/clk-provider.h

index 80149912e21d66e615066cc39ed401a824d623bd..557641ec4fd754f7fc9369ad415640d41fb60c32 100644 (file)
@@ -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)
 {
index d7082f421850cc2b59da3a0e7ffb5a4a6242c427..db4c760e86456792c64710a19be303f96881c5f2 100644 (file)
@@ -328,8 +328,6 @@ struct clk_fixed_rate {
        unsigned long   fixed_accuracy;
 };
 
-#define to_clk_fixed_rate(_hw) container_of(_hw, struct clk_fixed_rate, hw)
-
 extern const struct clk_ops clk_fixed_rate_ops;
 struct clk *clk_register_fixed_rate(struct device *dev, const char *name,
                const char *parent_name, unsigned long flags,