i2c: ocores: Make of_device_id array const
Subsystems (4)
PATCH 1/5 i2c: ocores: Make of_device_id array const
Make of_device_id array const, because all OF functions handle it as const.
--- drivers/i2c/busses/i2c-ocores.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
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 ,
Signature · 1 line
1.7.10.4
A message that is not in the archive (sent off-list or not yet received): 022101cf69d1$f1311200$d3933600$%[email protected]
PATCH 2/5 i2c: pxa: Make of_device_id array const
Make of_device_id array const, because all OF functions handle it as const.
--- drivers/i2c/busses/i2c-pxa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
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 },
Signature · 1 line
1.7.10.4
A message that is not in the archive (sent off-list or not yet received): 022201cf69d2$5fcc0ad0$1f642070$%[email protected]
Haojian Zhuang
Acked-byRe: [PATCH 2/5] i2c: pxa: Make of_device_id array const
Quoted 22 lines · Jingoo Han
Make
of_device_idarray const, because all OF functions handle it as const.Signed-off-by Jingoo Han <[email protected]>--- drivers/i2c/busses/i2c-pxa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/i2c/busses/i2c-pxa.c +1
-2@@ -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 }, --
Quoted 3 lines
1.7.10.4
PATCH 3/5 i2c: riic: Make of_device_id array const
In reply to a message not in the archiveMake of_device_id array const, because all OF functions handle it as const.
--- drivers/i2c/busses/i2c-riic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
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 */ }, };
Signature · 1 line
1.7.10.4
PATCH 4/5 i2c: st: Make of_device_id array const
In reply to a message not in the archiveMake of_device_id array const, because all OF functions handle it as const.
--- drivers/i2c/busses/i2c-st.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
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" , }, {},
Signature · 1 line
1.7.10.4
A message that is not in the archive (sent off-list or not yet received): 022601cf69d2$ef8ba9f0$cea2fdd0$%[email protected]
Maxime Coquelin
Acked-byRe: [PATCH 4/5] i2c: st: Make of_device_id array const
Hi Jingoo,
Quoted 3 lines · Jingoo Han
Make
of_device_idarray const, because all OF functions handle it as const.
Quoted 11 lines
Signed-off-by Jingoo Han <[email protected]>--- drivers/i2c/busses/i2c-st.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/i2c/busses/i2c-st.c +0
-0
drivers/i2c/busses/i2c-st.c static int st_i2c_remove(struct platform_device *pdev) · line 853
Quoted 8 lines
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" , }, {},
Thanks!
Maxime
PATCH 5/5 i2c: wmt: Make of_device_id array const
In reply to a message not in the archiveMake of_device_id array const, because all OF functions handle it as const.
--- drivers/i2c/busses/i2c-wmt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
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
Peter Korsgaard
Acked-byQuoted 6 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Jingoo" == Jingoo Han <[email protected]> writes:
Make
of_device_idarray const, because all OF functions handle it as const.Signed-off-by Jingoo Han <[email protected]>
Quoted 25 lines
--- drivers/i2c/busses/i2c-ocores.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)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 ,Signature · 7 lines
1.7.10.4 -- To unsubscribe from this list: send the line "unsubscribe linux-i2c" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Signature · 1 line
Bye, Peter Korsgaard
Quoted 4 lines · Jingoo Han
Make
of_device_idarray const, because all OF functions handle it as const.Signed-off-by Jingoo Han <[email protected]>
Ditto, one patch please.