]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
clk: fixed_rate: export clk_fixed_rate
authorPeng Fan <peng.fan@nxp.com>
Wed, 31 Jul 2019 07:01:39 +0000 (07:01 +0000)
committerLukasz Majewski <lukma@denx.de>
Wed, 31 Jul 2019 07:20:51 +0000 (09:20 +0200)
Export the structure for others to use.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
drivers/clk/clk_fixed_rate.c
include/linux/clk-provider.h

index 1fdf8c4e540a7962297c53038a01916d33a3f11f..08cce0d79b71033a7d387d4e6ffe045c04958b8a 100644 (file)
@@ -6,13 +6,7 @@
 #include <common.h>
 #include <clk-uclass.h>
 #include <dm.h>
-
-struct clk_fixed_rate {
-       struct clk clk;
-       unsigned long fixed_rate;
-};
-
-#define to_clk_fixed_rate(dev) ((struct clk_fixed_rate *)dev_get_platdata(dev))
+#include <linux/clk-provider.h>
 
 static ulong clk_fixed_rate_get_rate(struct clk *clk)
 {
index 8b04ecd7a5c7190f35f8f44318ae5d00a46bf288..f42df9b90fe9800536bff3bd75cf004fac232632 100644 (file)
@@ -129,6 +129,13 @@ struct clk_fixed_factor {
 #define to_clk_fixed_factor(_clk) container_of(_clk, struct clk_fixed_factor,\
                                               clk)
 
+struct clk_fixed_rate {
+       struct clk clk;
+       unsigned long fixed_rate;
+};
+
+#define to_clk_fixed_rate(dev) ((struct clk_fixed_rate *)dev_get_platdata(dev))
+
 int clk_register(struct clk *clk, const char *drv_name, const char *name,
                 const char *parent_name);