linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/3] mtd: mxc-nand: Constify platform_device_id
@ 2015-05-01 15:50 Krzysztof Kozlowski
  2015-05-01 15:50 ` [PATCH 2/3] mtd: s3c2410: " Krzysztof Kozlowski
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Krzysztof Kozlowski @ 2015-05-01 15:50 UTC (permalink / raw)
  To: linux-arm-kernel

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/mtd/nand/mxc_nand.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mtd/nand/mxc_nand.c b/drivers/mtd/nand/mxc_nand.c
index 372e0e38f59b..2c46489eeee0 100644
--- a/drivers/mtd/nand/mxc_nand.c
+++ b/drivers/mtd/nand/mxc_nand.c
@@ -1350,7 +1350,7 @@ static inline int is_imx53_nfc(struct mxc_nand_host *host)
 	return host->devtype_data == &imx53_nand_devtype_data;
 }
 
-static struct platform_device_id mxcnd_devtype[] = {
+static const struct platform_device_id mxcnd_devtype[] = {
 	{
 		.name = "imx21-nand",
 		.driver_data = (kernel_ulong_t) &imx21_nand_devtype_data,
-- 
2.1.4

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH 2/3] mtd: s3c2410: Constify platform_device_id
  2015-05-01 15:50 [PATCH 1/3] mtd: mxc-nand: Constify platform_device_id Krzysztof Kozlowski
@ 2015-05-01 15:50 ` Krzysztof Kozlowski
  2015-05-01 15:50 ` [PATCH 3/3] mtd: samsung: " Krzysztof Kozlowski
  2015-05-07  7:14 ` [PATCH 1/3] mtd: mxc-nand: " Brian Norris
  2 siblings, 0 replies; 4+ messages in thread
From: Krzysztof Kozlowski @ 2015-05-01 15:50 UTC (permalink / raw)
  To: linux-arm-kernel

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/mtd/nand/s3c2410.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mtd/nand/s3c2410.c b/drivers/mtd/nand/s3c2410.c
index 0e02be47ce1d..381f67ac6b5a 100644
--- a/drivers/mtd/nand/s3c2410.c
+++ b/drivers/mtd/nand/s3c2410.c
@@ -1105,7 +1105,7 @@ static int s3c24xx_nand_resume(struct platform_device *dev)
 
 /* driver device registration */
 
-static struct platform_device_id s3c24xx_driver_ids[] = {
+static const struct platform_device_id s3c24xx_driver_ids[] = {
 	{
 		.name		= "s3c2410-nand",
 		.driver_data	= TYPE_S3C2410,
-- 
2.1.4

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH 3/3] mtd: samsung: Constify platform_device_id
  2015-05-01 15:50 [PATCH 1/3] mtd: mxc-nand: Constify platform_device_id Krzysztof Kozlowski
  2015-05-01 15:50 ` [PATCH 2/3] mtd: s3c2410: " Krzysztof Kozlowski
@ 2015-05-01 15:50 ` Krzysztof Kozlowski
  2015-05-07  7:14 ` [PATCH 1/3] mtd: mxc-nand: " Brian Norris
  2 siblings, 0 replies; 4+ messages in thread
From: Krzysztof Kozlowski @ 2015-05-01 15:50 UTC (permalink / raw)
  To: linux-arm-kernel

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/mtd/onenand/samsung.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mtd/onenand/samsung.c b/drivers/mtd/onenand/samsung.c
index 19cfb97adbc0..739259513055 100644
--- a/drivers/mtd/onenand/samsung.c
+++ b/drivers/mtd/onenand/samsung.c
@@ -1083,7 +1083,7 @@ static const struct dev_pm_ops s3c_pm_ops = {
 	.resume		= s3c_pm_ops_resume,
 };
 
-static struct platform_device_id s3c_onenand_driver_ids[] = {
+static const struct platform_device_id s3c_onenand_driver_ids[] = {
 	{
 		.name		= "s3c6400-onenand",
 		.driver_data	= TYPE_S3C6400,
-- 
2.1.4

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH 1/3] mtd: mxc-nand: Constify platform_device_id
  2015-05-01 15:50 [PATCH 1/3] mtd: mxc-nand: Constify platform_device_id Krzysztof Kozlowski
  2015-05-01 15:50 ` [PATCH 2/3] mtd: s3c2410: " Krzysztof Kozlowski
  2015-05-01 15:50 ` [PATCH 3/3] mtd: samsung: " Krzysztof Kozlowski
@ 2015-05-07  7:14 ` Brian Norris
  2 siblings, 0 replies; 4+ messages in thread
From: Brian Norris @ 2015-05-07  7:14 UTC (permalink / raw)
  To: linux-arm-kernel

On Sat, May 02, 2015 at 12:50:01AM +0900, Krzysztof Kozlowski wrote:
> 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>

Pushed all 3 to l2-mtd.git.

Brian

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-05-07  7:14 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-01 15:50 [PATCH 1/3] mtd: mxc-nand: Constify platform_device_id Krzysztof Kozlowski
2015-05-01 15:50 ` [PATCH 2/3] mtd: s3c2410: " Krzysztof Kozlowski
2015-05-01 15:50 ` [PATCH 3/3] mtd: samsung: " Krzysztof Kozlowski
2015-05-07  7:14 ` [PATCH 1/3] mtd: mxc-nand: " Brian Norris

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).