Skip to contentSkip to conversation

dmaengine: ep93xx: Constify platform_device_id

PATCH Applied Krzysztof Kozlowski 2 participants 6 messages May 1, 2015 – May 4, 2015

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

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
index 24e5290faa32..57ff46284f15 100644
@@ -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
#1 lore raw

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
index eed405976ea9..865501fcc67d 100644
@@ -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
index 62bbd79338e0..77b6aab04f47 100644
@@ -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
#2 lore raw

PATCH 3/5 dmaengine: mxs: Constify platform_device_id

In reply to Krzysztof Kozlowski

The 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
index 829ec686dac3..60de35251da5 100644
@@ -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
#3 lore raw

PATCH 4/5 dmaengine: nbpfaxi: Constify platform_device_id

In reply to Krzysztof Kozlowski

The 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
index 88b77c98365d..2b5a198ac77e 100644
@@ -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
#4 lore raw

PATCH 5/5 dmaengine: s3c24xx: Constify platform_device_id

In reply to Krzysztof Kozlowski

The 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
index 01dcaf21b988..17ccdfd28f37 100644
@@ -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