i2c: ocores: Make of_device_id array const
Subsystems (4)
PATCH v2 1/1 i2c: ocores: Make of_device_id array const
Make of_device_id array const, because all OF functions handle it as const.
---
Changes since v1:
- squashed all patches into a single patch
- added acked-by
drivers/i2c/busses/i2c-ocores.c | 2 +- drivers/i2c/busses/i2c-pxa.c | 2 +- drivers/i2c/busses/i2c-riic.c | 2 +- drivers/i2c/busses/i2c-st.c | 2 +- drivers/i2c/busses/i2c-wmt.c | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-)
drivers/i2c/busses/i2c-ocores.c +1 -1
@@ -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 ,
drivers/i2c/busses/i2c-pxa.c +1 -1
@@ -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 },
drivers/i2c/busses/i2c-riic.c +1 -1
@@ -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 */ }, };
drivers/i2c/busses/i2c-st.c +1 -1
@@ -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" , }, {},
drivers/i2c/busses/i2c-wmt.c +1 -1
@@ -454,7 +454,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 */ }, };
Signature · 1 line
1.7.10.4
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Jingoo" == Jingoo Han <[email protected]> writes:
You seem to have forgotten to change subject, but I guess Wolfram can fix that when committing (E.G. s/ocores/busses/).
Quoted 10 lines
Make
of_device_idarray const, because all OF functions handle it as const.Signed-off-by Jingoo Han <[email protected]>Acked-by Maxime Coquelin <[email protected]>---
Changes since v1:
- squashed all patches into a single patch
- added acked-by
Signature · 1 line
By, Peter Korsgaard
Quoted 5 lines · Peter Korsgaard
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
"Jingoo" == Jingoo Han <[email protected]> writes:
You seem to have forgotten to change subject, but I guess Wolfram can fix that when committing (E.G. s/ocores/busses/).
Oh, it's my mistake! I will fix the subject and send v3 patch, soon. Thank you for your notification. :-)
Best regards,
Jingoo Han
Quoted 14 lines
Quoted 11 lines
Make
of_device_idarray const, because all OF functions handle it as const.Signed-off-by Jingoo Han <[email protected]>Acked-by Maxime Coquelin <[email protected]>---
Changes since v1:
- squashed all patches into a single patch
- added acked-by--
By, Peter Korsgaard