diff options
author | Lucas Stach <l.stach@pengutronix.de> | 2019-01-14 17:42:05 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2019-01-15 07:56:50 +0100 |
commit | 85f0102985a827c2369dc08e8893847040bb3fb0 (patch) | |
tree | 583650ec284f66a63ee88aabe5f0fee7d7c1ff2f /drivers/clk | |
parent | 6601e534446d1edfcf15c89483a8d76fb6bc215a (diff) | |
download | barebox-85f0102985a827c2369dc08e8893847040bb3fb0.tar.gz barebox-85f0102985a827c2369dc08e8893847040bb3fb0.tar.xz |
clk: move struct clk_gate into header
To make it reusable in a composite clock.
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/clk')
-rw-r--r-- | drivers/clk/clk-gate.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/drivers/clk/clk-gate.c b/drivers/clk/clk-gate.c index 695e19ab54..89240ff794 100644 --- a/drivers/clk/clk-gate.c +++ b/drivers/clk/clk-gate.c @@ -20,16 +20,6 @@ #include <linux/clk.h> #include <linux/err.h> -struct clk_gate { - struct clk clk; - void __iomem *reg; - int shift; - const char *parent; - unsigned flags; -}; - -#define to_clk_gate(_clk) container_of(_clk, struct clk_gate, clk) - static void clk_gate_endisable(struct clk *clk, int enable) { struct clk_gate *gate = container_of(clk, struct clk_gate, clk); @@ -79,7 +69,7 @@ static int clk_gate_is_enabled(struct clk *clk) return g->flags & CLK_GATE_INVERTED ? 1 : 0; } -static struct clk_ops clk_gate_ops = { +struct clk_ops clk_gate_ops = { .set_rate = clk_parent_set_rate, .round_rate = clk_parent_round_rate, .enable = clk_gate_enable, |