Skip to content
Snippets Groups Projects
Commit 30db9187 authored by Simon Glass's avatar Simon Glass
Browse files

zynq: Rename struct clk_ops to zynq_clk_ops


Since we want clk_ops to be used in U-Boot as a whole, rename the Zynq
version until it can be converted to driver model.

Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
parent f9917454
No related branches found
No related tags found
No related merge requests found
...@@ -48,11 +48,11 @@ DECLARE_GLOBAL_DATA_PTR; ...@@ -48,11 +48,11 @@ DECLARE_GLOBAL_DATA_PTR;
struct clk; struct clk;
/** /**
* struct clk_ops: * struct zynq_clk_ops:
* @set_rate: Function pointer to set_rate() implementation * @set_rate: Function pointer to set_rate() implementation
* @get_rate: Function pointer to get_rate() implementation * @get_rate: Function pointer to get_rate() implementation
*/ */
struct clk_ops { struct zynq_clk_ops {
int (*set_rate)(struct clk *clk, unsigned long rate); int (*set_rate)(struct clk *clk, unsigned long rate);
unsigned long (*get_rate)(struct clk *clk); unsigned long (*get_rate)(struct clk *clk);
}; };
...@@ -72,7 +72,7 @@ struct clk { ...@@ -72,7 +72,7 @@ struct clk {
enum zynq_clk parent; enum zynq_clk parent;
unsigned int flags; unsigned int flags;
u32 *reg; u32 *reg;
struct clk_ops ops; struct zynq_clk_ops ops;
}; };
#define ZYNQ_CLK_FLAGS_HAS_2_DIVS 1 #define ZYNQ_CLK_FLAGS_HAS_2_DIVS 1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment