diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2019-03-08 15:03:41 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2019-03-11 08:31:50 +0100 |
commit | af616888c86534b0f6a9754b2cf63adf062fdb7d (patch) | |
tree | ed1cfa56f13ef311925210f33f9264e090cd2b1d /drivers | |
parent | ec896c46b78234fb2b88f14be46af728024282bd (diff) | |
download | barebox-af616888c86534b0f6a9754b2cf63adf062fdb7d.tar.gz barebox-af616888c86534b0f6a9754b2cf63adf062fdb7d.tar.xz |
clk: parent_names should be const
Not only the array of pointers should be const, but also the strings
they point to. Add missing const.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/clk/clk-composite.c | 2 | ||||
-rw-r--r-- | drivers/clk/clk-mux.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/drivers/clk/clk-composite.c b/drivers/clk/clk-composite.c index 716f6805f3..e21ab98453 100644 --- a/drivers/clk/clk-composite.c +++ b/drivers/clk/clk-composite.c @@ -116,7 +116,7 @@ static struct clk_ops clk_composite_ops = { }; struct clk *clk_register_composite(const char *name, - const char **parent_names, int num_parents, + const char * const *parent_names, int num_parents, struct clk *mux_clk, struct clk *rate_clk, struct clk *gate_clk, diff --git a/drivers/clk/clk-mux.c b/drivers/clk/clk-mux.c index d5fe640dce..a108a72d63 100644 --- a/drivers/clk/clk-mux.c +++ b/drivers/clk/clk-mux.c @@ -52,7 +52,7 @@ struct clk_ops clk_mux_ops = { }; struct clk *clk_mux_alloc(const char *name, void __iomem *reg, - u8 shift, u8 width, const char **parents, u8 num_parents, + u8 shift, u8 width, const char * const *parents, u8 num_parents, unsigned flags) { struct clk_mux *m = xzalloc(sizeof(*m)); @@ -77,7 +77,7 @@ void clk_mux_free(struct clk *clk_mux) } struct clk *clk_mux(const char *name, void __iomem *reg, - u8 shift, u8 width, const char **parents, u8 num_parents, unsigned flags) + u8 shift, u8 width, const char * const *parents, u8 num_parents, unsigned flags) { struct clk *m; int ret; |