diff options
author | Dinh Nguyen <dinguyen@kernel.org> | 2020-01-14 10:07:26 -0600 |
---|---|---|
committer | Stephen Boyd <sboyd@kernel.org> | 2020-02-12 15:42:04 -0800 |
commit | 8c0e783d2c7be2bb75bf233574a3f1ad1e818cb1 (patch) | |
tree | 0cd623e6bf06291bd57dd24141fd67c1a8ad7854 /drivers/clk/socfpga/stratix10-clk.h | |
parent | cc26ed7be46c5f5fa45f3df8161ed7ca3c4d318c (diff) | |
download | lwn-8c0e783d2c7be2bb75bf233574a3f1ad1e818cb1.tar.gz lwn-8c0e783d2c7be2bb75bf233574a3f1ad1e818cb1.zip |
clk: socfpga: stratix10: simplify parameter passing
Just pass the clock pointer structure to the various register functions.
Signed-off-by: Dinh Nguyen <dinguyen@kernel.org>
Link: https://lkml.kernel.org/r/20200114160726.19771-2-dinguyen@kernel.org
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Diffstat (limited to 'drivers/clk/socfpga/stratix10-clk.h')
-rw-r--r-- | drivers/clk/socfpga/stratix10-clk.h | 25 |
1 files changed, 8 insertions, 17 deletions
diff --git a/drivers/clk/socfpga/stratix10-clk.h b/drivers/clk/socfpga/stratix10-clk.h index e8e121907952..fcabef42249c 100644 --- a/drivers/clk/socfpga/stratix10-clk.h +++ b/drivers/clk/socfpga/stratix10-clk.h @@ -60,21 +60,12 @@ struct stratix10_gate_clock { u8 fixed_div; }; -struct clk *s10_register_pll(const char *, const char *const *, u8, - unsigned long, void __iomem *, unsigned long); - -struct clk *s10_register_periph(const char *, const char *, - const char * const *, u8, unsigned long, - void __iomem *, unsigned long); -struct clk *s10_register_cnt_periph(const char *, const char *, - const char * const *, u8, - unsigned long, void __iomem *, - unsigned long, u8, unsigned long, - unsigned long); -struct clk *s10_register_gate(const char *, const char *, - const char * const *, u8, - unsigned long, void __iomem *, - unsigned long, unsigned long, - unsigned long, unsigned long, u8, - unsigned long, u8, u8); +struct clk *s10_register_pll(const struct stratix10_pll_clock *, + void __iomem *); +struct clk *s10_register_periph(const struct stratix10_perip_c_clock *, + void __iomem *); +struct clk *s10_register_cnt_periph(const struct stratix10_perip_cnt_clock *, + void __iomem *); +struct clk *s10_register_gate(const struct stratix10_gate_clock *, + void __iomem *); #endif /* __STRATIX10_CLK_H */ |