mtd: st_spi_fsm: Make of_device_id array const
Subsystems (2)
PATCH 1/3 mtd: st_spi_fsm: Make of_device_id array const
Make of_device_id array const, because all OF functions handle it as const.
--- drivers/mtd/devices/st_spi_fsm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/mtd/devices/st_spi_fsm.c +1 -1
@@ -2058,7 +2058,7 @@ static int stfsm_remove(struct platform_device *pdev)return mtd_device_unregister (&fsm->mtd); } -static struct of_device_id stfsm_match[] = { +static const struct of_device_id stfsm_match[] = { { .compatible ="st,spi-fsm" , }, {}, };
Signature · 1 line
1.7.10.4
PATCH 2/3 mtd: nand: pxa3xx: Make of_device_id array const
Make of_device_id array const, because all OF functions handle it as const.
--- drivers/mtd/nand/pxa3xx_nand.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/mtd/nand/pxa3xx_nand.c +1 -1
@@ -337,7 +337,7 @@ static struct nand_ecclayout ecc_layout_4KB_bch8bit = {/* convert nano-seconds to nand flash controller clock cycles */ #define ns2cycle (ns, clk) (int)((ns) * (clk / 1000000) / 1000) -static struct of_device_id pxa3xx_nand_dt_ids[] = { +static const struct of_device_id pxa3xx_nand_dt_ids[] = { { .compatible ="marvell,pxa3xx-nand" , .data = (void *)PXA3XX_NAND_VARIANT_PXA ,
Signature · 1 line
1.7.10.4
Re: [PATCH 2/3] mtd: nand: pxa3xx: Make of_device_id array const
Quoted 7 lines · Jingoo Han
Make
of_device_idarray const, because all OF functions handle it as const.Signed-off-by Jingoo Han <[email protected]>--- drivers/mtd/nand/pxa3xx_nand.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
thx,
Jason.
'Ezequiel Garcia'
Acked-byRe: [PATCH 2/3] mtd: nand: pxa3xx: Make of_device_id array const
Quoted 11 lines · Jason Cooper
Quoted 7 lines · Jingoo Han
Make
of_device_idarray const, because all OF functions handle it as const.Signed-off-by Jingoo Han <[email protected]>--- drivers/mtd/nand/pxa3xx_nand.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)Acked-by Jason Cooper <[email protected]>
Signature · 3 lines
Ezequiel García, Free Electrons Embedded Linux, Kernel and Android Engineering http://free-electrons.com
PATCH 3/3 mtd: orion_nand: Make of_device_id array const
In reply to Jingoo HanMake of_device_id array const, because all OF functions handle it as const.
--- drivers/mtd/nand/orion_nand.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/mtd/nand/orion_nand.c +1 -1
@@ -214,7 +214,7 @@ static int orion_nand_remove(struct platform_device *pdev) }#ifdef CONFIG_OF -static struct of_device_id orion_nand_of_match_table[] = { +static const struct of_device_id orion_nand_of_match_table[] = { { .compatible ="marvell,orion-nand" , }, {}, };
Signature · 1 line
1.7.10.4
Re: [PATCH 3/3] mtd: orion_nand: Make of_device_id array const
Quoted 13 lines · Jingoo Han
Make
of_device_idarray const, because all OF functions handle it as const.Signed-off-by Jingoo Han <[email protected]>--- drivers/mtd/nand/orion_nand.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/mtd/nand/orion_nand.c +0
-0
drivers/mtd/nand/orion_nand.c static int orion_nand_remove(struct platform_device *pdev) · line 220
Quoted 8 lines
drivers/mtd/nand/orion_nand.c +1
-1@@ -214,7 +214,7 @@ static int orion_nand_remove(struct platform_device *pdev) }#ifdef CONFIG_OF -static struct of_device_id orion_nand_of_match_table[] = { +static const struct of_device_id orion_nand_of_match_table[] = { { .compatible ="marvell,orion-nand" , }, {}, };
Andrew
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]>
Pushed all 3 to l2-mtd.git. Thanks!
Brian