2015-05-01 15:44:22

by Krzysztof Kozłowski

[permalink] [raw]
Subject: [PATCH 1/4] spi: imx: Constify platform_device_id

The platform_device_id is not modified by the driver and core uses it as
const.

Signed-off-by: Krzysztof Kozlowski <[email protected]>
---
drivers/spi/spi-imx.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/spi/spi-imx.c b/drivers/spi/spi-imx.c
index f08e812b2984..eb7d3a6fb14c 100644
--- a/drivers/spi/spi-imx.c
+++ b/drivers/spi/spi-imx.c
@@ -674,7 +674,7 @@ static struct spi_imx_devtype_data imx51_ecspi_devtype_data = {
.devtype = IMX51_ECSPI,
};

-static struct platform_device_id spi_imx_devtype[] = {
+static const struct platform_device_id spi_imx_devtype[] = {
{
.name = "imx1-cspi",
.driver_data = (kernel_ulong_t) &imx1_cspi_devtype_data,
--
2.1.4


2015-05-01 15:44:28

by Krzysztof Kozłowski

[permalink] [raw]
Subject: [PATCH 2/4] spi: rspi: Constify platform_device_id

The platform_device_id is not modified by the driver and core uses it as
const.

Signed-off-by: Krzysztof Kozlowski <[email protected]>
---
drivers/spi/spi-rspi.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/spi/spi-rspi.c b/drivers/spi/spi-rspi.c
index f6bac9e77d06..70a7a7b168fd 100644
--- a/drivers/spi/spi-rspi.c
+++ b/drivers/spi/spi-rspi.c
@@ -1300,7 +1300,7 @@ error1:
return ret;
}

-static struct platform_device_id spi_driver_ids[] = {
+static const struct platform_device_id spi_driver_ids[] = {
{ "rspi", (kernel_ulong_t)&rspi_ops },
{ "rspi-rz", (kernel_ulong_t)&rspi_rz_ops },
{ "qspi", (kernel_ulong_t)&qspi_ops },
--
2.1.4

2015-05-01 15:44:55

by Krzysztof Kozłowski

[permalink] [raw]
Subject: [PATCH 3/4] spi: s3c64xx: Constify platform_device_id

The platform_device_id is not modified by the driver and core uses it as
const.

Signed-off-by: Krzysztof Kozlowski <[email protected]>
---
drivers/spi/spi-s3c64xx.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/spi/spi-s3c64xx.c b/drivers/spi/spi-s3c64xx.c
index b1c6731fbf27..2a8c513c4d07 100644
--- a/drivers/spi/spi-s3c64xx.c
+++ b/drivers/spi/spi-s3c64xx.c
@@ -1347,7 +1347,7 @@ static struct s3c64xx_spi_port_config exynos7_spi_port_config = {
.quirks = S3C64XX_SPI_QUIRK_CS_AUTO,
};

-static struct platform_device_id s3c64xx_spi_driver_ids[] = {
+static const struct platform_device_id s3c64xx_spi_driver_ids[] = {
{
.name = "s3c2443-spi",
.driver_data = (kernel_ulong_t)&s3c2443_spi_port_config,
--
2.1.4

2015-05-01 15:44:34

by Krzysztof Kozłowski

[permalink] [raw]
Subject: [PATCH 4/4] spi: sh-msiof: Constify platform_device_id

The platform_device_id is not modified by the driver and core uses it as
const.

Signed-off-by: Krzysztof Kozlowski <[email protected]>
---
drivers/spi/spi-sh-msiof.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/spi/spi-sh-msiof.c b/drivers/spi/spi-sh-msiof.c
index bcc7c635d8e7..d3370a612d84 100644
--- a/drivers/spi/spi-sh-msiof.c
+++ b/drivers/spi/spi-sh-msiof.c
@@ -1263,7 +1263,7 @@ static int sh_msiof_spi_remove(struct platform_device *pdev)
return 0;
}

-static struct platform_device_id spi_driver_ids[] = {
+static const struct platform_device_id spi_driver_ids[] = {
{ "spi_sh_msiof", (kernel_ulong_t)&sh_data },
{ "spi_r8a7790_msiof", (kernel_ulong_t)&r8a779x_data },
{ "spi_r8a7791_msiof", (kernel_ulong_t)&r8a779x_data },
--
2.1.4

2015-05-01 16:37:52

by Mark Brown

[permalink] [raw]
Subject: Re: [PATCH 1/4] spi: imx: Constify platform_device_id

On Sat, May 02, 2015 at 12:44:04AM +0900, Krzysztof Kozlowski wrote:
> The platform_device_id is not modified by the driver and core uses it as
> const.

Applied, thanks.


Attachments:
(No filename) (171.00 B)
signature.asc (473.00 B)
Digital signature
Download all attachments

2015-05-01 16:38:08

by Mark Brown

[permalink] [raw]
Subject: Re: [PATCH 2/4] spi: rspi: Constify platform_device_id

On Sat, May 02, 2015 at 12:44:05AM +0900, Krzysztof Kozlowski wrote:
> The platform_device_id is not modified by the driver and core uses it as
> const.

Applied, thanks.


Attachments:
(No filename) (171.00 B)
signature.asc (473.00 B)
Digital signature
Download all attachments

2015-05-01 16:38:43

by Mark Brown

[permalink] [raw]
Subject: Re: [PATCH 3/4] spi: s3c64xx: Constify platform_device_id

On Sat, May 02, 2015 at 12:44:06AM +0900, Krzysztof Kozlowski wrote:

> The platform_device_id is not modified by the driver and core uses it as
> const.

Applied, thanks.


Attachments:
(No filename) (172.00 B)
signature.asc (473.00 B)
Digital signature
Download all attachments

2015-05-01 16:42:06

by Mark Brown

[permalink] [raw]
Subject: Re: [PATCH 4/4] spi: sh-msiof: Constify platform_device_id

On Sat, May 02, 2015 at 12:44:07AM +0900, Krzysztof Kozlowski wrote:
> The platform_device_id is not modified by the driver and core uses it as
> const.

Applied, thanks.


Attachments:
(No filename) (171.00 B)
signature.asc (473.00 B)
Digital signature
Download all attachments