提交 9e8c93ed 编写于 作者: P Peter De Schrijver 提交者: Thierry Reding

clk: tegra: Fix constness for peripheral clocks

checkpatch now warns for const ** and expects const * const * to be used
instead. This means we have to update the prototypes and function
declarations to handle this change.
Signed-off-by: NPeter De Schrijver <pdeschrijver@nvidia.com>
Reviewed-by: NMikko Perttunen <mperttunen@nvidia.com>
Tested-by: NMikko Perttunen <mperttunen@nvidia.com>
Signed-off-by: NThierry Reding <treding@nvidia.com>
上级 319af797
...@@ -138,7 +138,7 @@ static const struct clk_ops tegra_clk_periph_no_gate_ops = { ...@@ -138,7 +138,7 @@ static const struct clk_ops tegra_clk_periph_no_gate_ops = {
}; };
static struct clk *_tegra_clk_register_periph(const char *name, static struct clk *_tegra_clk_register_periph(const char *name,
const char **parent_names, int num_parents, const char * const *parent_names, int num_parents,
struct tegra_clk_periph *periph, struct tegra_clk_periph *periph,
void __iomem *clk_base, u32 offset, void __iomem *clk_base, u32 offset,
unsigned long flags) unsigned long flags)
...@@ -186,7 +186,7 @@ static struct clk *_tegra_clk_register_periph(const char *name, ...@@ -186,7 +186,7 @@ static struct clk *_tegra_clk_register_periph(const char *name,
} }
struct clk *tegra_clk_register_periph(const char *name, struct clk *tegra_clk_register_periph(const char *name,
const char **parent_names, int num_parents, const char * const *parent_names, int num_parents,
struct tegra_clk_periph *periph, void __iomem *clk_base, struct tegra_clk_periph *periph, void __iomem *clk_base,
u32 offset, unsigned long flags) u32 offset, unsigned long flags)
{ {
......
...@@ -586,7 +586,7 @@ struct tegra_clk_periph { ...@@ -586,7 +586,7 @@ struct tegra_clk_periph {
extern const struct clk_ops tegra_clk_periph_ops; extern const struct clk_ops tegra_clk_periph_ops;
struct clk *tegra_clk_register_periph(const char *name, struct clk *tegra_clk_register_periph(const char *name,
const char **parent_names, int num_parents, const char * const *parent_names, int num_parents,
struct tegra_clk_periph *periph, void __iomem *clk_base, struct tegra_clk_periph *periph, void __iomem *clk_base,
u32 offset, unsigned long flags); u32 offset, unsigned long flags);
struct clk *tegra_clk_register_periph_nodiv(const char *name, struct clk *tegra_clk_register_periph_nodiv(const char *name,
...@@ -626,7 +626,7 @@ struct tegra_periph_init_data { ...@@ -626,7 +626,7 @@ struct tegra_periph_init_data {
const char *name; const char *name;
int clk_id; int clk_id;
union { union {
const char **parent_names; const char *const *parent_names;
const char *parent_name; const char *parent_name;
} p; } p;
int num_parents; int num_parents;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册