dmaengine: ep93xx: Constify platform_device_id
Subsystems (3)
PATCH 1/5 dmaengine: ep93xx: Constify platform_device_id
The platform_device_id is not modified by the driver and core uses it as const.
--- drivers/dma/ep93xx_dma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/dma/ep93xx_dma.c +1 -1
@@ -1364,7 +1364,7 @@ static int __init ep93xx_dma_probe(struct platform_device *pdev)return ret; } -static struct platform_device_id ep93xx_dma_driver_ids[] = { +static const struct platform_device_id ep93xx_dma_driver_ids[] = { {"ep93xx-dma-m2p" ,0 }, {"ep93xx-dma-m2m" ,1 }, { },
Signature · 1 line
2.1.4
PATCH 2/5 dmaengine: imx: Constify platform_device_id
The platform_device_id is not modified by the driver and core uses it as const.
--- drivers/dma/imx-dma.c | 2 +- drivers/dma/imx-sdma.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/dma/imx-dma.c +1 -1
@@ -193,7 +193,7 @@ struct imxdma_filter_data {int request; }; -static struct platform_device_id imx_dma_devtype[] = { +static const struct platform_device_id imx_dma_devtype[] = { { .name ="imx1-dma" , .driver_data =IMX1_DMA ,
drivers/dma/imx-sdma.c +1 -1
@@ -420,7 +420,7 @@ static struct sdma_driver_data sdma_imx6q = { .script_addrs = &sdma_script_imx6q, }; -static struct platform_device_id sdma_devtypes[] = { +static const struct platform_device_id sdma_devtypes[] = { { .name ="imx25-sdma" , .driver_data = (unsigned long )&sdma_imx25,
Signature · 1 line
2.1.4
PATCH 3/5 dmaengine: mxs: Constify platform_device_id
In reply to Krzysztof KozlowskiThe platform_device_id is not modified by the driver and core uses it as const.
--- drivers/dma/mxs-dma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/dma/mxs-dma.c +1 -1
@@ -170,7 +170,7 @@ static struct mxs_dma_type mxs_dma_types[] = { } }; -static struct platform_device_id mxs_dma_ids[] = { +static const struct platform_device_id mxs_dma_ids[] = { { .name ="imx23-dma-apbh" , .driver_data = (kernel_ulong_t) &mxs_dma_types[0 ],
Signature · 1 line
2.1.4
PATCH 4/5 dmaengine: nbpfaxi: Constify platform_device_id
In reply to Krzysztof KozlowskiThe platform_device_id is not modified by the driver and core uses it as const.
--- drivers/dma/nbpfaxi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/dma/nbpfaxi.c +1 -1
@@ -1455,7 +1455,7 @@ static int nbpf_remove(struct platform_device *pdev)return 0 ; } -static struct platform_device_id nbpf_ids[] = { +static const struct platform_device_id nbpf_ids[] = { {"nbpfaxi64dmac1b4" , (kernel_ulong_t)&nbpf_cfg[NBPF1B4 ]}, {"nbpfaxi64dmac1b8" , (kernel_ulong_t)&nbpf_cfg[NBPF1B8 ]}, {"nbpfaxi64dmac1b16" , (kernel_ulong_t)&nbpf_cfg[NBPF1B16 ]},
Signature · 1 line
2.1.4
PATCH 5/5 dmaengine: s3c24xx: Constify platform_device_id
In reply to Krzysztof KozlowskiThe platform_device_id is not modified by the driver and core uses it as const.
--- drivers/dma/s3c24xx-dma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/dma/s3c24xx-dma.c +1 -1
@@ -1168,7 +1168,7 @@ static struct soc_data soc_s3c2443 = { .has_clocks = true, }; -static struct platform_device_id s3c24xx_dma_driver_ids[] = { +static const struct platform_device_id s3c24xx_dma_driver_ids[] = { { .name ="s3c2410-dma" , .driver_data = (kernel_ulong_t)&soc_s3c2410,
Signature · 1 line
2.1.4
Vinod Koul
AppliedQuoted 3 lines · Krzysztof Kozlowski
The
platform_device_idis not modified by the driver and core uses it as const.
Applied all, thanks
Signature · 1 line
~Vinod