Skip to content

Commit

Permalink
i2c: Make of_device_id array const
Browse files Browse the repository at this point in the history
Make of_device_id array const, because all OF functions
handle it as const.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Acked-by: Peter Korsgaard <peter@korsgaard.com>
Acked-by: Maxime Coquelin <maxime.coquelin@st.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
  • Loading branch information
Jingoo Han authored and Wolfram Sang committed Jun 2, 2014
1 parent 46797a2 commit eae45e5
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion drivers/i2c/busses/i2c-ocores.c
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ static struct i2c_adapter ocores_adapter = {
.algo = &ocores_algorithm,
};

static struct of_device_id ocores_i2c_match[] = {
static const struct of_device_id ocores_i2c_match[] = {
{
.compatible = "opencores,i2c-ocores",
.data = (void *)TYPE_OCORES,
Expand Down
2 changes: 1 addition & 1 deletion drivers/i2c/busses/i2c-pxa.c
Original file line number Diff line number Diff line change
Expand Up @@ -1084,7 +1084,7 @@ static const struct i2c_algorithm i2c_pxa_pio_algorithm = {
.functionality = i2c_pxa_functionality,
};

static struct of_device_id i2c_pxa_dt_ids[] = {
static const struct of_device_id i2c_pxa_dt_ids[] = {
{ .compatible = "mrvl,pxa-i2c", .data = (void *)REGS_PXA2XX },
{ .compatible = "mrvl,pwri2c", .data = (void *)REGS_PXA3XX },
{ .compatible = "mrvl,mmp-twsi", .data = (void *)REGS_PXA2XX },
Expand Down
2 changes: 1 addition & 1 deletion drivers/i2c/busses/i2c-riic.c
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ static int riic_i2c_remove(struct platform_device *pdev)
return 0;
}

static struct of_device_id riic_i2c_dt_ids[] = {
static const struct of_device_id riic_i2c_dt_ids[] = {
{ .compatible = "renesas,riic-rz" },
{ /* Sentinel */ },
};
Expand Down
2 changes: 1 addition & 1 deletion drivers/i2c/busses/i2c-st.c
Original file line number Diff line number Diff line change
Expand Up @@ -847,7 +847,7 @@ static int st_i2c_remove(struct platform_device *pdev)
return 0;
}

static struct of_device_id st_i2c_match[] = {
static const struct of_device_id st_i2c_match[] = {
{ .compatible = "st,comms-ssc-i2c", },
{ .compatible = "st,comms-ssc4-i2c", },
{},
Expand Down
2 changes: 1 addition & 1 deletion drivers/i2c/busses/i2c-wmt.c
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ static int wmt_i2c_remove(struct platform_device *pdev)
return 0;
}

static struct of_device_id wmt_i2c_dt_ids[] = {
static const struct of_device_id wmt_i2c_dt_ids[] = {
{ .compatible = "wm,wm8505-i2c" },
{ /* Sentinel */ },
};
Expand Down

0 comments on commit eae45e5

Please sign in to comment.