clk: palmas: constify the palmas_clks_of_match_data structure

The palmas_clks_of_match_data structures are never modified.
This patch constify them.

Signed-off-by: LABBE Corentin <clabbe.montjoie@gmail.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
This commit is contained in:
LABBE Corentin 2015-11-25 13:52:01 +01:00 committed by Stephen Boyd
parent 653d1452b4
commit 93fffbbee1
1 changed files with 6 additions and 6 deletions

View File

@ -44,7 +44,7 @@ struct palmas_clock_info {
struct clk *clk; struct clk *clk;
struct clk_hw hw; struct clk_hw hw;
struct palmas *palmas; struct palmas *palmas;
struct palmas_clk32k_desc *clk_desc; const struct palmas_clk32k_desc *clk_desc;
int ext_control_pin; int ext_control_pin;
}; };
@ -125,10 +125,10 @@ static struct clk_ops palmas_clks_ops = {
struct palmas_clks_of_match_data { struct palmas_clks_of_match_data {
struct clk_init_data init; struct clk_init_data init;
struct palmas_clk32k_desc desc; const struct palmas_clk32k_desc desc;
}; };
static struct palmas_clks_of_match_data palmas_of_clk32kg = { static const struct palmas_clks_of_match_data palmas_of_clk32kg = {
.init = { .init = {
.name = "clk32kg", .name = "clk32kg",
.ops = &palmas_clks_ops, .ops = &palmas_clks_ops,
@ -144,7 +144,7 @@ static struct palmas_clks_of_match_data palmas_of_clk32kg = {
}, },
}; };
static struct palmas_clks_of_match_data palmas_of_clk32kgaudio = { static const struct palmas_clks_of_match_data palmas_of_clk32kgaudio = {
.init = { .init = {
.name = "clk32kgaudio", .name = "clk32kgaudio",
.ops = &palmas_clks_ops, .ops = &palmas_clks_ops,
@ -240,14 +240,14 @@ static int palmas_clks_probe(struct platform_device *pdev)
{ {
struct palmas *palmas = dev_get_drvdata(pdev->dev.parent); struct palmas *palmas = dev_get_drvdata(pdev->dev.parent);
struct device_node *node = pdev->dev.of_node; struct device_node *node = pdev->dev.of_node;
struct palmas_clks_of_match_data *match_data; const struct palmas_clks_of_match_data *match_data;
const struct of_device_id *match; const struct of_device_id *match;
struct palmas_clock_info *cinfo; struct palmas_clock_info *cinfo;
struct clk *clk; struct clk *clk;
int ret; int ret;
match = of_match_device(palmas_clks_of_match, &pdev->dev); match = of_match_device(palmas_clks_of_match, &pdev->dev);
match_data = (struct palmas_clks_of_match_data *)match->data; match_data = match->data;
cinfo = devm_kzalloc(&pdev->dev, sizeof(*cinfo), GFP_KERNEL); cinfo = devm_kzalloc(&pdev->dev, sizeof(*cinfo), GFP_KERNEL);
if (!cinfo) if (!cinfo)