* [PATCH 2/4] spi: rspi: Constify platform_device_id
2015-05-01 15:44 [PATCH 1/4] spi: imx: Constify platform_device_id Krzysztof Kozlowski
@ 2015-05-01 15:44 ` Krzysztof Kozlowski
2015-05-01 16:37 ` Mark Brown
2015-05-01 15:44 ` [PATCH 3/4] spi: s3c64xx: " Krzysztof Kozlowski
` (2 subsequent siblings)
3 siblings, 1 reply; 8+ messages in thread
From: Krzysztof Kozlowski @ 2015-05-01 15:44 UTC (permalink / raw)
To: Mark Brown, Kukjin Kim, linux-spi, linux-kernel, linux-arm-kernel,
linux-samsung-soc
Cc: Krzysztof Kozlowski
The platform_device_id is not modified by the driver and core uses it as
const.
Signed-off-by: Krzysztof Kozlowski <k.kozlowski.k@gmail.com>
---
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
^ permalink raw reply related [flat|nested] 8+ messages in thread* Re: [PATCH 2/4] spi: rspi: Constify platform_device_id
2015-05-01 15:44 ` [PATCH 2/4] spi: rspi: " Krzysztof Kozlowski
@ 2015-05-01 16:37 ` Mark Brown
0 siblings, 0 replies; 8+ messages in thread
From: Mark Brown @ 2015-05-01 16:37 UTC (permalink / raw)
To: Krzysztof Kozlowski
Cc: Kukjin Kim, linux-spi, linux-kernel, linux-arm-kernel,
linux-samsung-soc
[-- Attachment #1: Type: text/plain, Size: 171 bytes --]
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.
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 473 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH 3/4] spi: s3c64xx: Constify platform_device_id
2015-05-01 15:44 [PATCH 1/4] spi: imx: Constify platform_device_id Krzysztof Kozlowski
2015-05-01 15:44 ` [PATCH 2/4] spi: rspi: " Krzysztof Kozlowski
@ 2015-05-01 15:44 ` Krzysztof Kozlowski
[not found] ` <1430495047-31122-3-git-send-email-k.kozlowski.k-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2015-05-01 15:44 ` [PATCH 4/4] spi: sh-msiof: " Krzysztof Kozlowski
2015-05-01 16:37 ` [PATCH 1/4] spi: imx: " Mark Brown
3 siblings, 1 reply; 8+ messages in thread
From: Krzysztof Kozlowski @ 2015-05-01 15:44 UTC (permalink / raw)
To: Mark Brown, Kukjin Kim, linux-spi, linux-kernel, linux-arm-kernel,
linux-samsung-soc
Cc: Krzysztof Kozlowski
The platform_device_id is not modified by the driver and core uses it as
const.
Signed-off-by: Krzysztof Kozlowski <k.kozlowski.k@gmail.com>
---
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
^ permalink raw reply related [flat|nested] 8+ messages in thread* [PATCH 4/4] spi: sh-msiof: Constify platform_device_id
2015-05-01 15:44 [PATCH 1/4] spi: imx: Constify platform_device_id Krzysztof Kozlowski
2015-05-01 15:44 ` [PATCH 2/4] spi: rspi: " Krzysztof Kozlowski
2015-05-01 15:44 ` [PATCH 3/4] spi: s3c64xx: " Krzysztof Kozlowski
@ 2015-05-01 15:44 ` Krzysztof Kozlowski
[not found] ` <1430495047-31122-4-git-send-email-k.kozlowski.k-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2015-05-01 16:37 ` [PATCH 1/4] spi: imx: " Mark Brown
3 siblings, 1 reply; 8+ messages in thread
From: Krzysztof Kozlowski @ 2015-05-01 15:44 UTC (permalink / raw)
To: Mark Brown, Kukjin Kim, linux-spi, linux-kernel, linux-arm-kernel,
linux-samsung-soc
Cc: Krzysztof Kozlowski
The platform_device_id is not modified by the driver and core uses it as
const.
Signed-off-by: Krzysztof Kozlowski <k.kozlowski.k@gmail.com>
---
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
^ permalink raw reply related [flat|nested] 8+ messages in thread* Re: [PATCH 1/4] spi: imx: Constify platform_device_id
2015-05-01 15:44 [PATCH 1/4] spi: imx: Constify platform_device_id Krzysztof Kozlowski
` (2 preceding siblings ...)
2015-05-01 15:44 ` [PATCH 4/4] spi: sh-msiof: " Krzysztof Kozlowski
@ 2015-05-01 16:37 ` Mark Brown
3 siblings, 0 replies; 8+ messages in thread
From: Mark Brown @ 2015-05-01 16:37 UTC (permalink / raw)
To: Krzysztof Kozlowski
Cc: Kukjin Kim, linux-spi, linux-kernel, linux-arm-kernel,
linux-samsung-soc
[-- Attachment #1: Type: text/plain, Size: 171 bytes --]
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.
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 473 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread