dri-devel.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 00/15] drivers: make device_type const
@ 2017-08-19  8:22 Bhumika Goyal
  2017-08-19  8:22 ` [PATCH 01/15] EDAC: " Bhumika Goyal
                   ` (25 more replies)
  0 siblings, 26 replies; 37+ messages in thread
From: Bhumika Goyal @ 2017-08-19  8:22 UTC (permalink / raw)
  To: julia.lawall, bp, mchehab, daniel.vetter, jani.nikula, seanpaul,
	airlied, g.liakhovetski, tomas.winkler, dwmw2, computersforpeace,
	boris.brezillon, marek.vasut, richard, cyrille.pitchen, peda,
	kishon, bhelgaas, thierry.reding, jonathanh, dvhart, andy, ohad,
	bjorn.andersson, freude, schwidefsky, heiko.carstens, jth, jejb,
	martin.petersen, lduncan, cleech, johan, elder, gregkh,
	heikki.krogerus, linux-edac, linux-kernel, dri-devel
  Cc: Bhumika Goyal

Make device_type const. Done using Coccinelle.

Bhumika Goyal (15):
  EDAC: make device_type const
  drm: make device_type const
  [media] i2c: make device_type const
  [media] rc: make device_type const
  mei: make device_type const
  mtd:  make device_type const
  mux: make device_type const
  PCI: make device_type const
  phy: tegra: make device_type const
  platform/x86: wmi: make device_type const
  remoteproc: make device_type const
  s390/zcrypt: make device_type const
  scsi: make device_type const
  staging: greybus: make device_type const
  usb: make device_type const

 drivers/edac/edac_mc_sysfs.c           | 8 ++++----
 drivers/edac/i7core_edac.c             | 4 ++--
 drivers/gpu/drm/drm_sysfs.c            | 2 +-
 drivers/gpu/drm/ttm/ttm_module.c       | 2 +-
 drivers/media/i2c/soc_camera/mt9t031.c | 2 +-
 drivers/media/rc/rc-main.c             | 2 +-
 drivers/misc/mei/bus.c                 | 2 +-
 drivers/mtd/mtdcore.c                  | 2 +-
 drivers/mux/mux-core.c                 | 2 +-
 drivers/pci/endpoint/pci-epf-core.c    | 4 ++--
 drivers/phy/tegra/xusb.c               | 4 ++--
 drivers/platform/x86/wmi.c             | 6 +++---
 drivers/remoteproc/remoteproc_core.c   | 2 +-
 drivers/s390/crypto/ap_card.c          | 2 +-
 drivers/s390/crypto/ap_queue.c         | 2 +-
 drivers/scsi/fcoe/fcoe_sysfs.c         | 4 ++--
 drivers/scsi/scsi_transport_iscsi.c    | 4 ++--
 drivers/staging/greybus/gbphy.c        | 2 +-
 drivers/usb/common/ulpi.c              | 2 +-
 19 files changed, 29 insertions(+), 29 deletions(-)

-- 
1.9.1

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

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

* [PATCH 01/15] EDAC: make device_type const
  2017-08-19  8:22 [PATCH 00/15] drivers: make device_type const Bhumika Goyal
@ 2017-08-19  8:22 ` Bhumika Goyal
  2017-08-20 11:29   ` Borislav Petkov
  2017-08-19  8:22 ` [PATCH 02/15] drm: " Bhumika Goyal
                   ` (24 subsequent siblings)
  25 siblings, 1 reply; 37+ messages in thread
From: Bhumika Goyal @ 2017-08-19  8:22 UTC (permalink / raw)
  To: julia.lawall, bp, mchehab, daniel.vetter, jani.nikula, seanpaul,
	airlied, g.liakhovetski, tomas.winkler, dwmw2, computersforpeace,
	boris.brezillon, marek.vasut, richard, cyrille.pitchen, peda,
	kishon, bhelgaas, thierry.reding, jonathanh, dvhart, andy, ohad,
	bjorn.andersson, freude, schwidefsky, heiko.carstens, jth, jejb,
	martin.petersen, lduncan, cleech, johan, elder, gregkh,
	heikki.krogerus, linux-edac, linux-kernel, dri-devel
  Cc: Bhumika Goyal

Make these const as they are only stored in the type field of a device
structure, which is const.
Done using Coccinelle.

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
---
 drivers/edac/edac_mc_sysfs.c | 8 ++++----
 drivers/edac/i7core_edac.c   | 4 ++--
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/drivers/edac/edac_mc_sysfs.c b/drivers/edac/edac_mc_sysfs.c
index dbc6446..e4fcfa8 100644
--- a/drivers/edac/edac_mc_sysfs.c
+++ b/drivers/edac/edac_mc_sysfs.c
@@ -304,7 +304,7 @@ static void csrow_attr_release(struct device *dev)
 	kfree(csrow);
 }
 
-static struct device_type csrow_attr_type = {
+static const struct device_type csrow_attr_type = {
 	.groups		= csrow_attr_groups,
 	.release	= csrow_attr_release,
 };
@@ -644,7 +644,7 @@ static void dimm_attr_release(struct device *dev)
 	kfree(dimm);
 }
 
-static struct device_type dimm_attr_type = {
+static const struct device_type dimm_attr_type = {
 	.groups		= dimm_attr_groups,
 	.release	= dimm_attr_release,
 };
@@ -920,7 +920,7 @@ static void mci_attr_release(struct device *dev)
 	kfree(mci);
 }
 
-static struct device_type mci_attr_type = {
+static const struct device_type mci_attr_type = {
 	.groups		= mci_attr_groups,
 	.release	= mci_attr_release,
 };
@@ -1074,7 +1074,7 @@ static void mc_attr_release(struct device *dev)
 	kfree(dev);
 }
 
-static struct device_type mc_attr_type = {
+static const struct device_type mc_attr_type = {
 	.release	= mc_attr_release,
 };
 /*
diff --git a/drivers/edac/i7core_edac.c b/drivers/edac/i7core_edac.c
index d36cc84..c16c3b9 100644
--- a/drivers/edac/i7core_edac.c
+++ b/drivers/edac/i7core_edac.c
@@ -1094,7 +1094,7 @@ static void addrmatch_release(struct device *device)
 	kfree(device);
 }
 
-static struct device_type addrmatch_type = {
+static const struct device_type addrmatch_type = {
 	.groups		= addrmatch_groups,
 	.release	= addrmatch_release,
 };
@@ -1125,7 +1125,7 @@ static void all_channel_counts_release(struct device *device)
 	kfree(device);
 }
 
-static struct device_type all_channel_counts_type = {
+static const struct device_type all_channel_counts_type = {
 	.groups		= all_channel_counts_groups,
 	.release	= all_channel_counts_release,
 };
-- 
1.9.1

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

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

* [PATCH 02/15] drm: make device_type const
  2017-08-19  8:22 [PATCH 00/15] drivers: make device_type const Bhumika Goyal
  2017-08-19  8:22 ` [PATCH 01/15] EDAC: " Bhumika Goyal
@ 2017-08-19  8:22 ` Bhumika Goyal
  2017-08-25 13:36   ` Daniel Vetter
  2017-08-19  8:22 ` [PATCH 03/15] [media] i2c: " Bhumika Goyal
                   ` (23 subsequent siblings)
  25 siblings, 1 reply; 37+ messages in thread
From: Bhumika Goyal @ 2017-08-19  8:22 UTC (permalink / raw)
  To: julia.lawall, bp, mchehab, daniel.vetter, jani.nikula, seanpaul,
	airlied, g.liakhovetski, tomas.winkler, dwmw2, computersforpeace,
	boris.brezillon, marek.vasut, richard, cyrille.pitchen, peda,
	kishon, bhelgaas, thierry.reding, jonathanh, dvhart, andy, ohad,
	bjorn.andersson, freude, schwidefsky, heiko.carstens, jth, jejb,
	martin.petersen, lduncan, cleech, johan, elder, gregkh,
	heikki.krogerus, linux-edac, linux-kernel, dri-devel
  Cc: Bhumika Goyal

Make these const as they are only stored in the type field of a device
structure, which is const.
Done using Coccinelle.
---
 drivers/gpu/drm/drm_sysfs.c      | 2 +-
 drivers/gpu/drm/ttm/ttm_module.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/drm_sysfs.c b/drivers/gpu/drm/drm_sysfs.c
index 1c5b5ce..84e4ebe 100644
--- a/drivers/gpu/drm/drm_sysfs.c
+++ b/drivers/gpu/drm/drm_sysfs.c
@@ -39,7 +39,7 @@
  * drm_connector_unregister().
  */
 
-static struct device_type drm_sysfs_device_minor = {
+static const struct device_type drm_sysfs_device_minor = {
 	.name = "drm_minor"
 };
 
diff --git a/drivers/gpu/drm/ttm/ttm_module.c b/drivers/gpu/drm/ttm/ttm_module.c
index 66fc639..e6604e0 100644
--- a/drivers/gpu/drm/ttm/ttm_module.c
+++ b/drivers/gpu/drm/ttm/ttm_module.c
@@ -37,7 +37,7 @@
 static DECLARE_WAIT_QUEUE_HEAD(exit_q);
 static atomic_t device_released;
 
-static struct device_type ttm_drm_class_type = {
+static const struct device_type ttm_drm_class_type = {
 	.name = "ttm",
 	/**
 	 * Add pm ops here.
-- 
1.9.1

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

* [PATCH 03/15] [media] i2c: make device_type const
  2017-08-19  8:22 [PATCH 00/15] drivers: make device_type const Bhumika Goyal
  2017-08-19  8:22 ` [PATCH 01/15] EDAC: " Bhumika Goyal
  2017-08-19  8:22 ` [PATCH 02/15] drm: " Bhumika Goyal
@ 2017-08-19  8:22 ` Bhumika Goyal
  2017-08-24 16:31   ` Guennadi Liakhovetski
  2017-08-19  8:22 ` [PATCH 04/15] [media] rc: " Bhumika Goyal
                   ` (22 subsequent siblings)
  25 siblings, 1 reply; 37+ messages in thread
From: Bhumika Goyal @ 2017-08-19  8:22 UTC (permalink / raw)
  To: julia.lawall, bp, mchehab, daniel.vetter, jani.nikula, seanpaul,
	airlied, g.liakhovetski, tomas.winkler, dwmw2, computersforpeace,
	boris.brezillon, marek.vasut, richard, cyrille.pitchen, peda,
	kishon, bhelgaas, thierry.reding, jonathanh, dvhart, andy, ohad,
	bjorn.andersson, freude, schwidefsky, heiko.carstens, jth, jejb,
	martin.petersen, lduncan, cleech, johan, elder, gregkh,
	heikki.krogerus, linux-edac, linux-kernel, dri-devel
  Cc: Bhumika Goyal

Make this const as it is only stored in the type field of a device
structure, which is const.
Done using Coccinelle.

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
---
 drivers/media/i2c/soc_camera/mt9t031.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/media/i2c/soc_camera/mt9t031.c b/drivers/media/i2c/soc_camera/mt9t031.c
index 714fb35..4802d30 100644
--- a/drivers/media/i2c/soc_camera/mt9t031.c
+++ b/drivers/media/i2c/soc_camera/mt9t031.c
@@ -592,7 +592,7 @@ static int mt9t031_runtime_resume(struct device *dev)
 	.runtime_resume		= mt9t031_runtime_resume,
 };
 
-static struct device_type mt9t031_dev_type = {
+static const struct device_type mt9t031_dev_type = {
 	.name	= "MT9T031",
 	.pm	= &mt9t031_dev_pm_ops,
 };
-- 
1.9.1

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

* [PATCH 04/15] [media] rc: make device_type const
  2017-08-19  8:22 [PATCH 00/15] drivers: make device_type const Bhumika Goyal
                   ` (2 preceding siblings ...)
  2017-08-19  8:22 ` [PATCH 03/15] [media] i2c: " Bhumika Goyal
@ 2017-08-19  8:22 ` Bhumika Goyal
  2017-08-19  8:22 ` [PATCH 05/15] mei: " Bhumika Goyal
                   ` (21 subsequent siblings)
  25 siblings, 0 replies; 37+ messages in thread
From: Bhumika Goyal @ 2017-08-19  8:22 UTC (permalink / raw)
  To: julia.lawall, bp, mchehab, daniel.vetter, jani.nikula, seanpaul,
	airlied, g.liakhovetski, tomas.winkler, dwmw2, computersforpeace,
	boris.brezillon, marek.vasut, richard, cyrille.pitchen, peda,
	kishon, bhelgaas, thierry.reding, jonathanh, dvhart, andy, ohad,
	bjorn.andersson, freude, schwidefsky, heiko.carstens, jth, jejb,
	martin.petersen, lduncan, cleech, johan, elder, gregkh,
	heikki.krogerus, linux-edac, linux-kernel, dri-devel
  Cc: Bhumika Goyal

Make this const as it is only stored in the type field of a device
structure, which is const.
Done using Coccinelle.

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
---
 drivers/media/rc/rc-main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/media/rc/rc-main.c b/drivers/media/rc/rc-main.c
index a9eba00..ea3da3e 100644
--- a/drivers/media/rc/rc-main.c
+++ b/drivers/media/rc/rc-main.c
@@ -1532,7 +1532,7 @@ static RC_FILTER_ATTR(wakeup_filter_mask, S_IRUGO|S_IWUSR,
 	.attrs	= rc_dev_wakeup_filter_attrs,
 };
 
-static struct device_type rc_dev_type = {
+static const struct device_type rc_dev_type = {
 	.release	= rc_dev_release,
 	.uevent		= rc_dev_uevent,
 };
-- 
1.9.1

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

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

* [PATCH 05/15] mei: make device_type const
  2017-08-19  8:22 [PATCH 00/15] drivers: make device_type const Bhumika Goyal
                   ` (3 preceding siblings ...)
  2017-08-19  8:22 ` [PATCH 04/15] [media] rc: " Bhumika Goyal
@ 2017-08-19  8:22 ` Bhumika Goyal
  2017-08-19 16:48   ` Winkler, Tomas
  2017-08-19  8:22 ` [PATCH 06/15] mtd: " Bhumika Goyal
                   ` (20 subsequent siblings)
  25 siblings, 1 reply; 37+ messages in thread
From: Bhumika Goyal @ 2017-08-19  8:22 UTC (permalink / raw)
  To: julia.lawall, bp, mchehab, daniel.vetter, jani.nikula, seanpaul,
	airlied, g.liakhovetski, tomas.winkler, dwmw2, computersforpeace,
	boris.brezillon, marek.vasut, richard, cyrille.pitchen, peda,
	kishon, bhelgaas, thierry.reding, jonathanh, dvhart, andy, ohad,
	bjorn.andersson, freude, schwidefsky, heiko.carstens, jth, jejb,
	martin.petersen, lduncan, cleech, johan, elder, gregkh,
	heikki.krogerus, linux-edac, linux-kernel, dri-devel
  Cc: Bhumika Goyal

Make this const as it is only stored in the type field of a device
structure, which is const.
Done using Coccinelle.

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
---
 drivers/misc/mei/bus.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/misc/mei/bus.c b/drivers/misc/mei/bus.c
index 40c7908..1ac10cb 100644
--- a/drivers/misc/mei/bus.c
+++ b/drivers/misc/mei/bus.c
@@ -845,7 +845,7 @@ static void mei_cl_bus_dev_release(struct device *dev)
 	kfree(cldev);
 }
 
-static struct device_type mei_cl_device_type = {
+static const struct device_type mei_cl_device_type = {
 	.release	= mei_cl_bus_dev_release,
 };
 
-- 
1.9.1

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

* [PATCH 06/15] mtd:  make device_type const
  2017-08-19  8:22 [PATCH 00/15] drivers: make device_type const Bhumika Goyal
                   ` (4 preceding siblings ...)
  2017-08-19  8:22 ` [PATCH 05/15] mei: " Bhumika Goyal
@ 2017-08-19  8:22 ` Bhumika Goyal
  2017-08-19  8:22 ` Bhumika Goyal
                   ` (19 subsequent siblings)
  25 siblings, 0 replies; 37+ messages in thread
From: Bhumika Goyal @ 2017-08-19  8:22 UTC (permalink / raw)
  To: julia.lawall, bp, mchehab, daniel.vetter, jani.nikula, seanpaul,
	airlied, g.liakhovetski, tomas.winkler, dwmw2, computersforpeace,
	boris.brezillon, marek.vasut, richard, cyrille.pitchen, peda,
	kishon, bhelgaas, thierry.reding, jonathanh, dvhart, andy, ohad,
	bjorn.andersson, freude, schwidefsky, heiko.carstens, jth, jejb,
	martin.petersen, lduncan, cleech, johan, elder, gregkh,
	heikki.krogerus, linux-edac, linux-kernel, dri-devel
  Cc: Bhumika Goyal

Make this const as it is only stored in the type field of a device
structure, which is const.
Done using Coccinelle.

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
---
 drivers/mtd/mtdcore.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mtd/mtdcore.c b/drivers/mtd/mtdcore.c
index f872a99..e7ea842 100644
--- a/drivers/mtd/mtdcore.c
+++ b/drivers/mtd/mtdcore.c
@@ -340,7 +340,7 @@ static ssize_t mtd_bbtblocks_show(struct device *dev,
 };
 ATTRIBUTE_GROUPS(mtd);
 
-static struct device_type mtd_devtype = {
+static const struct device_type mtd_devtype = {
 	.name		= "mtd",
 	.groups		= mtd_groups,
 	.release	= mtd_release,
-- 
1.9.1

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

* [PATCH 06/15] mtd:  make device_type const
  2017-08-19  8:22 [PATCH 00/15] drivers: make device_type const Bhumika Goyal
                   ` (5 preceding siblings ...)
  2017-08-19  8:22 ` [PATCH 06/15] mtd: " Bhumika Goyal
@ 2017-08-19  8:22 ` Bhumika Goyal
  2017-08-19  8:22 ` Bhumika Goyal
                   ` (18 subsequent siblings)
  25 siblings, 0 replies; 37+ messages in thread
From: Bhumika Goyal @ 2017-08-19  8:22 UTC (permalink / raw)
  To: julia.lawall, bp, mchehab, daniel.vetter, jani.nikula, seanpaul,
	airlied, g.liakhovetski, tomas.winkler, dwmw2, computersforpeace,
	boris.brezillon, marek.vasut, richard, cyrille.pitchen, peda,
	kishon, bhelgaas, thierry.reding, jonathanh, dvhart, andy, ohad,
	bjorn.andersson, freude, schwidefsky, heiko.carstens, jth, jejb,
	martin.petersen, lduncan, cleech, johan, elder, gregkh,
	heikki.krogerus, linux-edac, linux-kernel, dri-devel
  Cc: Bhumika Goyal

Make this const as it is only stored in the type field of a device
structure, which is const.
Done using Coccinelle.

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
---
 drivers/mtd/mtdcore.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mtd/mtdcore.c b/drivers/mtd/mtdcore.c
index f872a99..e7ea842 100644
--- a/drivers/mtd/mtdcore.c
+++ b/drivers/mtd/mtdcore.c
@@ -340,7 +340,7 @@ static ssize_t mtd_bbtblocks_show(struct device *dev,
 };
 ATTRIBUTE_GROUPS(mtd);
 
-static struct device_type mtd_devtype = {
+static const struct device_type mtd_devtype = {
 	.name		= "mtd",
 	.groups		= mtd_groups,
 	.release	= mtd_release,
-- 
1.9.1

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

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

* [PATCH 06/15] mtd:  make device_type const
  2017-08-19  8:22 [PATCH 00/15] drivers: make device_type const Bhumika Goyal
                   ` (6 preceding siblings ...)
  2017-08-19  8:22 ` Bhumika Goyal
@ 2017-08-19  8:22 ` Bhumika Goyal
  2017-08-19  8:22 ` [PATCH 07/15] mux: " Bhumika Goyal
                   ` (17 subsequent siblings)
  25 siblings, 0 replies; 37+ messages in thread
From: Bhumika Goyal @ 2017-08-19  8:22 UTC (permalink / raw)
  To: julia.lawall, bp, mchehab, daniel.vetter, jani.nikula, seanpaul,
	airlied, g.liakhovetski, tomas.winkler, dwmw2, computersforpeace,
	boris.brezillon, marek.vasut, richard, cyrille.pitchen, peda,
	kishon, bhelgaas, thierry.reding, jonathanh, dvhart, andy, ohad,
	bjorn.andersson, freude, schwidefsky, heiko.carstens, jth, jejb,
	martin.petersen, lduncan, cleech, johan, elder, gregkh,
	heikki.krogerus, linux-edac, linux-kernel, dri-devel
  Cc: Bhumika Goyal

Make this const as it is only stored in the type field of a device
structure, which is const.
Done using Coccinelle.

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
---
 drivers/mtd/mtdcore.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mtd/mtdcore.c b/drivers/mtd/mtdcore.c
index f872a99..e7ea842 100644
--- a/drivers/mtd/mtdcore.c
+++ b/drivers/mtd/mtdcore.c
@@ -340,7 +340,7 @@ static ssize_t mtd_bbtblocks_show(struct device *dev,
 };
 ATTRIBUTE_GROUPS(mtd);
 
-static struct device_type mtd_devtype = {
+static const struct device_type mtd_devtype = {
 	.name		= "mtd",
 	.groups		= mtd_groups,
 	.release	= mtd_release,
-- 
1.9.1


______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

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

* [PATCH 06/15] mtd:  make device_type const
       [not found] ` <1503130946-2854-1-git-send-email-bhumirks-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
@ 2017-08-19  8:22   ` Bhumika Goyal
  2017-08-19  8:22   ` [PATCH 07/15] mux: " Bhumika Goyal
                     ` (2 subsequent siblings)
  3 siblings, 0 replies; 37+ messages in thread
From: Bhumika Goyal @ 2017-08-19  8:22 UTC (permalink / raw)
  To: julia.lawall-L2FTfq7BK8M, bp-Gina5bIWoIWzQB+pC5nmwQ,
	mchehab-DgEjT+Ai2ygdnm+yROfE0A,
	daniel.vetter-ral2JQCrhuEAvxtiuMwx3w,
	jani.nikula-VuQAYsv1563Yd54FQh9/CA,
	seanpaul-F7+t8E8rja9g9hUCZPvPmw, airlied-cv59FeDIM0c,
	g.liakhovetski-Mmb7MZpHnFY, tomas.winkler-ral2JQCrhuEAvxtiuMwx3w,
	dwmw2-wEGCiKHe2LqWVfeAwA7xHQ,
	computersforpeace-Re5JQEeQqe8AvxtiuMwx3w,
	boris.brezillon-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8,
	marek.vasut-Re5JQEeQqe8AvxtiuMwx3w, richard-/L3Ra7n9ekc,
	cyrille.pitchen-yU5RGvR974pGWvitb5QawA,
	peda-koto5C5qi+TLoDKTGw+V6w, kishon-l0cyMroinI0,
	bhelgaas-hpIqsD4AKlfQT0dZR+AlfA,
	thierry.reding-Re5JQEeQqe8AvxtiuMwx3w,
	jonathanh-DDmLM1+adcrQT0dZR+AlfA, dvhart-wEGCiKHe2LqWVfeAwA7xHQ,
	andy-wEGCiKHe2LqWVfeAwA7xHQ, ohad-Ix1uc/W3ht7QT0dZR+AlfA,
	bjorn.andersson-QSEj5FYQhm4dnm+yROfE0A,
	freude-tA70FqPdS9bQT0dZR+AlfA,
	schwidefsky-tA70FqPdS9bQT0dZR+AlfA,
	heiko.carstens-tA70FqPdS9bQT0dZR+AlfA,
	jth-DgEjT+Ai2ygdnm+yROfE0A,
	jejb-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8,
	martin.petersen-QHcLZuEGTsvQT0dZR+AlfA, lduncan-IBi9RG/b67k,
	cleech-H+wXaHxf7aLQT0dZR+AlfA, johan-DgEjT+Ai2ygdnm+yROfE0A,
	elder-DgEjT+Ai2ygdnm+yROfE0A,
	gregkh-hQyY1W1yCW8ekmWlsbkhG0B+6BGkLq7r,
	heikki.krogerus-VuQAYsv1563Yd54FQh9/CA,
	linux-edac-u79uwXL29TY76Z2rM5mHXA, linux-kernel
  Cc: Bhumika Goyal

Make this const as it is only stored in the type field of a device
structure, which is const.
Done using Coccinelle.

Signed-off-by: Bhumika Goyal <bhumirks-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
---
 drivers/mtd/mtdcore.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mtd/mtdcore.c b/drivers/mtd/mtdcore.c
index f872a99..e7ea842 100644
--- a/drivers/mtd/mtdcore.c
+++ b/drivers/mtd/mtdcore.c
@@ -340,7 +340,7 @@ static ssize_t mtd_bbtblocks_show(struct device *dev,
 };
 ATTRIBUTE_GROUPS(mtd);
 
-static struct device_type mtd_devtype = {
+static const struct device_type mtd_devtype = {
 	.name		= "mtd",
 	.groups		= mtd_groups,
 	.release	= mtd_release,
-- 
1.9.1

-- 
You received this message because you are subscribed to the Google Groups "open-iscsi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to open-iscsi+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To post to this group, send email to open-iscsi-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
Visit this group at https://groups.google.com/group/open-iscsi.
For more options, visit https://groups.google.com/d/optout.

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

* [PATCH 07/15] mux: make device_type const
  2017-08-19  8:22 [PATCH 00/15] drivers: make device_type const Bhumika Goyal
                   ` (7 preceding siblings ...)
  2017-08-19  8:22 ` Bhumika Goyal
@ 2017-08-19  8:22 ` Bhumika Goyal
  2017-08-19  8:22 ` Bhumika Goyal
                   ` (16 subsequent siblings)
  25 siblings, 0 replies; 37+ messages in thread
From: Bhumika Goyal @ 2017-08-19  8:22 UTC (permalink / raw)
  To: julia.lawall, bp, mchehab, daniel.vetter, jani.nikula, seanpaul,
	airlied, g.liakhovetski, tomas.winkler, dwmw2, computersforpeace,
	boris.brezillon, marek.vasut, richard, cyrille.pitchen, peda,
	kishon, bhelgaas, thierry.reding, jonathanh, dvhart, andy, ohad,
	bjorn.andersson, freude, schwidefsky, heiko.carstens, jth, jejb,
	martin.petersen, lduncan, cleech, johan, elder, gregkh,
	heikki.krogerus, linux-edac, linux-kernel, dri-devel
  Cc: Bhumika Goyal

Make this const as it is only stored in the type field of a device
structure, which is const.
Done using Coccinelle.

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
---
 drivers/mux/mux-core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mux/mux-core.c b/drivers/mux/mux-core.c
index 2fe96c4..68bd16d 100644
--- a/drivers/mux/mux-core.c
+++ b/drivers/mux/mux-core.c
@@ -58,7 +58,7 @@ static void mux_chip_release(struct device *dev)
 	kfree(mux_chip);
 }
 
-static struct device_type mux_type = {
+static const struct device_type mux_type = {
 	.name = "mux-chip",
 	.release = mux_chip_release,
 };
-- 
1.9.1

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

* [PATCH 07/15] mux: make device_type const
  2017-08-19  8:22 [PATCH 00/15] drivers: make device_type const Bhumika Goyal
                   ` (8 preceding siblings ...)
  2017-08-19  8:22 ` [PATCH 07/15] mux: " Bhumika Goyal
@ 2017-08-19  8:22 ` Bhumika Goyal
  2017-08-19  8:22 ` Bhumika Goyal
                   ` (15 subsequent siblings)
  25 siblings, 0 replies; 37+ messages in thread
From: Bhumika Goyal @ 2017-08-19  8:22 UTC (permalink / raw)
  To: julia.lawall, bp, mchehab, daniel.vetter, jani.nikula, seanpaul,
	airlied, g.liakhovetski, tomas.winkler, dwmw2, computersforpeace,
	boris.brezillon, marek.vasut, richard, cyrille.pitchen, peda,
	kishon, bhelgaas, thierry.reding, jonathanh, dvhart, andy, ohad,
	bjorn.andersson, freude, schwidefsky, heiko.carstens, jth, jejb,
	martin.petersen, lduncan, cleech, johan, elder, gregkh,
	heikki.krogerus, linux-edac, linux-kernel, dri-devel
  Cc: Bhumika Goyal

Make this const as it is only stored in the type field of a device
structure, which is const.
Done using Coccinelle.

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
---
 drivers/mux/mux-core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mux/mux-core.c b/drivers/mux/mux-core.c
index 2fe96c4..68bd16d 100644
--- a/drivers/mux/mux-core.c
+++ b/drivers/mux/mux-core.c
@@ -58,7 +58,7 @@ static void mux_chip_release(struct device *dev)
 	kfree(mux_chip);
 }
 
-static struct device_type mux_type = {
+static const struct device_type mux_type = {
 	.name = "mux-chip",
 	.release = mux_chip_release,
 };
-- 
1.9.1

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

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

* [PATCH 07/15] mux: make device_type const
  2017-08-19  8:22 [PATCH 00/15] drivers: make device_type const Bhumika Goyal
                   ` (9 preceding siblings ...)
  2017-08-19  8:22 ` Bhumika Goyal
@ 2017-08-19  8:22 ` Bhumika Goyal
  2017-08-19  8:22 ` [PATCH 08/15] PCI: " Bhumika Goyal
                   ` (14 subsequent siblings)
  25 siblings, 0 replies; 37+ messages in thread
From: Bhumika Goyal @ 2017-08-19  8:22 UTC (permalink / raw)
  To: julia.lawall, bp, mchehab, daniel.vetter, jani.nikula, seanpaul,
	airlied, g.liakhovetski, tomas.winkler, dwmw2, computersforpeace,
	boris.brezillon, marek.vasut, richard, cyrille.pitchen, peda,
	kishon, bhelgaas, thierry.reding, jonathanh, dvhart, andy, ohad,
	bjorn.andersson, freude, schwidefsky, heiko.carstens, jth, jejb,
	martin.petersen, lduncan, cleech, johan, elder, gregkh,
	heikki.krogerus, linux-edac, linux-kernel, dri-devel
  Cc: Bhumika Goyal

Make this const as it is only stored in the type field of a device
structure, which is const.
Done using Coccinelle.

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
---
 drivers/mux/mux-core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mux/mux-core.c b/drivers/mux/mux-core.c
index 2fe96c4..68bd16d 100644
--- a/drivers/mux/mux-core.c
+++ b/drivers/mux/mux-core.c
@@ -58,7 +58,7 @@ static void mux_chip_release(struct device *dev)
 	kfree(mux_chip);
 }
 
-static struct device_type mux_type = {
+static const struct device_type mux_type = {
 	.name = "mux-chip",
 	.release = mux_chip_release,
 };
-- 
1.9.1


______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

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

* [PATCH 07/15] mux: make device_type const
       [not found] ` <1503130946-2854-1-git-send-email-bhumirks-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
  2017-08-19  8:22   ` [PATCH 06/15] mtd: " Bhumika Goyal
@ 2017-08-19  8:22   ` Bhumika Goyal
  2017-08-19  8:22   ` [PATCH 11/15] remoteproc: " Bhumika Goyal
  2017-08-19  8:22   ` [PATCH 14/15] staging: greybus: " Bhumika Goyal
  3 siblings, 0 replies; 37+ messages in thread
From: Bhumika Goyal @ 2017-08-19  8:22 UTC (permalink / raw)
  To: julia.lawall-L2FTfq7BK8M, bp-Gina5bIWoIWzQB+pC5nmwQ,
	mchehab-DgEjT+Ai2ygdnm+yROfE0A,
	daniel.vetter-ral2JQCrhuEAvxtiuMwx3w,
	jani.nikula-VuQAYsv1563Yd54FQh9/CA,
	seanpaul-F7+t8E8rja9g9hUCZPvPmw, airlied-cv59FeDIM0c,
	g.liakhovetski-Mmb7MZpHnFY, tomas.winkler-ral2JQCrhuEAvxtiuMwx3w,
	dwmw2-wEGCiKHe2LqWVfeAwA7xHQ,
	computersforpeace-Re5JQEeQqe8AvxtiuMwx3w,
	boris.brezillon-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8,
	marek.vasut-Re5JQEeQqe8AvxtiuMwx3w, richard-/L3Ra7n9ekc,
	cyrille.pitchen-yU5RGvR974pGWvitb5QawA,
	peda-koto5C5qi+TLoDKTGw+V6w, kishon-l0cyMroinI0,
	bhelgaas-hpIqsD4AKlfQT0dZR+AlfA,
	thierry.reding-Re5JQEeQqe8AvxtiuMwx3w,
	jonathanh-DDmLM1+adcrQT0dZR+AlfA, dvhart-wEGCiKHe2LqWVfeAwA7xHQ,
	andy-wEGCiKHe2LqWVfeAwA7xHQ, ohad-Ix1uc/W3ht7QT0dZR+AlfA,
	bjorn.andersson-QSEj5FYQhm4dnm+yROfE0A,
	freude-tA70FqPdS9bQT0dZR+AlfA,
	schwidefsky-tA70FqPdS9bQT0dZR+AlfA,
	heiko.carstens-tA70FqPdS9bQT0dZR+AlfA,
	jth-DgEjT+Ai2ygdnm+yROfE0A,
	jejb-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8,
	martin.petersen-QHcLZuEGTsvQT0dZR+AlfA, lduncan-IBi9RG/b67k,
	cleech-H+wXaHxf7aLQT0dZR+AlfA, johan-DgEjT+Ai2ygdnm+yROfE0A,
	elder-DgEjT+Ai2ygdnm+yROfE0A,
	gregkh-hQyY1W1yCW8ekmWlsbkhG0B+6BGkLq7r,
	heikki.krogerus-VuQAYsv1563Yd54FQh9/CA,
	linux-edac-u79uwXL29TY76Z2rM5mHXA, linux-kernel
  Cc: Bhumika Goyal

Make this const as it is only stored in the type field of a device
structure, which is const.
Done using Coccinelle.

Signed-off-by: Bhumika Goyal <bhumirks-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
---
 drivers/mux/mux-core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mux/mux-core.c b/drivers/mux/mux-core.c
index 2fe96c4..68bd16d 100644
--- a/drivers/mux/mux-core.c
+++ b/drivers/mux/mux-core.c
@@ -58,7 +58,7 @@ static void mux_chip_release(struct device *dev)
 	kfree(mux_chip);
 }
 
-static struct device_type mux_type = {
+static const struct device_type mux_type = {
 	.name = "mux-chip",
 	.release = mux_chip_release,
 };
-- 
1.9.1

-- 
You received this message because you are subscribed to the Google Groups "open-iscsi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to open-iscsi+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To post to this group, send email to open-iscsi-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
Visit this group at https://groups.google.com/group/open-iscsi.
For more options, visit https://groups.google.com/d/optout.

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

* [PATCH 08/15] PCI: make device_type const
  2017-08-19  8:22 [PATCH 00/15] drivers: make device_type const Bhumika Goyal
                   ` (10 preceding siblings ...)
  2017-08-19  8:22 ` Bhumika Goyal
@ 2017-08-19  8:22 ` Bhumika Goyal
       [not found]   ` <1503130946-2854-9-git-send-email-bhumirks-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
  2017-08-19  8:22 ` [PATCH 09/15] phy: tegra: " Bhumika Goyal
                   ` (13 subsequent siblings)
  25 siblings, 1 reply; 37+ messages in thread
From: Bhumika Goyal @ 2017-08-19  8:22 UTC (permalink / raw)
  To: julia.lawall, bp, mchehab, daniel.vetter, jani.nikula, seanpaul,
	airlied, g.liakhovetski, tomas.winkler, dwmw2, computersforpeace,
	boris.brezillon, marek.vasut, richard, cyrille.pitchen, peda,
	kishon, bhelgaas, thierry.reding, jonathanh, dvhart, andy, ohad,
	bjorn.andersson, freude, schwidefsky, heiko.carstens, jth, jejb,
	martin.petersen, lduncan, cleech, johan, elder, gregkh,
	heikki.krogerus, linux-edac, linux-kernel, dri-devel
  Cc: Bhumika Goyal

Make this const as it is only stored in the type field of a device
structure, which is const.
Done using Coccinelle.

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
---
 drivers/pci/endpoint/pci-epf-core.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/pci/endpoint/pci-epf-core.c b/drivers/pci/endpoint/pci-epf-core.c
index 6877d6a..9d0de12 100644
--- a/drivers/pci/endpoint/pci-epf-core.c
+++ b/drivers/pci/endpoint/pci-epf-core.c
@@ -27,7 +27,7 @@
 #include <linux/pci-ep-cfs.h>
 
 static struct bus_type pci_epf_bus_type;
-static struct device_type pci_epf_type;
+static const struct device_type pci_epf_type;
 
 /**
  * pci_epf_linkup() - Notify the function driver that EPC device has
@@ -275,7 +275,7 @@ static void pci_epf_dev_release(struct device *dev)
 	kfree(epf);
 }
 
-static struct device_type pci_epf_type = {
+static const struct device_type pci_epf_type = {
 	.release	= pci_epf_dev_release,
 };
 
-- 
1.9.1

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

* [PATCH 09/15] phy: tegra: make device_type const
  2017-08-19  8:22 [PATCH 00/15] drivers: make device_type const Bhumika Goyal
                   ` (11 preceding siblings ...)
  2017-08-19  8:22 ` [PATCH 08/15] PCI: " Bhumika Goyal
@ 2017-08-19  8:22 ` Bhumika Goyal
  2017-08-19  8:22 ` [PATCH 10/15] platform/x86: wmi: " Bhumika Goyal
                   ` (12 subsequent siblings)
  25 siblings, 0 replies; 37+ messages in thread
From: Bhumika Goyal @ 2017-08-19  8:22 UTC (permalink / raw)
  To: julia.lawall, bp, mchehab, daniel.vetter, jani.nikula, seanpaul,
	airlied, g.liakhovetski, tomas.winkler, dwmw2, computersforpeace,
	boris.brezillon, marek.vasut, richard, cyrille.pitchen, peda,
	kishon, bhelgaas, thierry.reding, jonathanh, dvhart, andy, ohad,
	bjorn.andersson, freude, schwidefsky, heiko.carstens, jth, jejb,
	martin.petersen, lduncan, cleech, johan, elder, gregkh,
	heikki.krogerus, linux-edac, linux-kernel, dri-devel
  Cc: Bhumika Goyal

Make these const as they are only stored in the type field of a device
structure, which is const.
Done using Coccinelle.

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
---
 drivers/phy/tegra/xusb.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/phy/tegra/xusb.c b/drivers/phy/tegra/xusb.c
index 3cbcb25..bd3f1b6 100644
--- a/drivers/phy/tegra/xusb.c
+++ b/drivers/phy/tegra/xusb.c
@@ -155,7 +155,7 @@ static void tegra_xusb_pad_release(struct device *dev)
 	pad->soc->ops->remove(pad);
 }
 
-static struct device_type tegra_xusb_pad_type = {
+static const struct device_type tegra_xusb_pad_type = {
 	.release = tegra_xusb_pad_release,
 };
 
@@ -512,7 +512,7 @@ static void tegra_xusb_port_release(struct device *dev)
 {
 }
 
-static struct device_type tegra_xusb_port_type = {
+static const struct device_type tegra_xusb_port_type = {
 	.release = tegra_xusb_port_release,
 };
 
-- 
1.9.1

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

* [PATCH 10/15] platform/x86: wmi: make device_type const
  2017-08-19  8:22 [PATCH 00/15] drivers: make device_type const Bhumika Goyal
                   ` (12 preceding siblings ...)
  2017-08-19  8:22 ` [PATCH 09/15] phy: tegra: " Bhumika Goyal
@ 2017-08-19  8:22 ` Bhumika Goyal
  2017-08-19  8:22 ` [PATCH 11/15] remoteproc: " Bhumika Goyal
                   ` (11 subsequent siblings)
  25 siblings, 0 replies; 37+ messages in thread
From: Bhumika Goyal @ 2017-08-19  8:22 UTC (permalink / raw)
  To: julia.lawall, bp, mchehab, daniel.vetter, jani.nikula, seanpaul,
	airlied, g.liakhovetski, tomas.winkler, dwmw2, computersforpeace,
	boris.brezillon, marek.vasut, richard, cyrille.pitchen, peda,
	kishon, bhelgaas, thierry.reding, jonathanh, dvhart, andy, ohad,
	bjorn.andersson, freude, schwidefsky, heiko.carstens, jth, jejb,
	martin.petersen, lduncan, cleech, johan, elder, gregkh,
	heikki.krogerus, linux-edac, linux-kernel, dri-devel
  Cc: Bhumika Goyal

Make these const as they are only stored in the type field of a device
structure, which is const.
Done using Coccinelle.

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
---
 drivers/platform/x86/wmi.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/platform/x86/wmi.c b/drivers/platform/x86/wmi.c
index e32ba57..a37c253 100644
--- a/drivers/platform/x86/wmi.c
+++ b/drivers/platform/x86/wmi.c
@@ -810,19 +810,19 @@ static int wmi_dev_remove(struct device *dev)
 	.remove = wmi_dev_remove,
 };
 
-static struct device_type wmi_type_event = {
+static const struct device_type wmi_type_event = {
 	.name = "event",
 	.groups = wmi_event_groups,
 	.release = wmi_dev_release,
 };
 
-static struct device_type wmi_type_method = {
+static const struct device_type wmi_type_method = {
 	.name = "method",
 	.groups = wmi_method_groups,
 	.release = wmi_dev_release,
 };
 
-static struct device_type wmi_type_data = {
+static const struct device_type wmi_type_data = {
 	.name = "data",
 	.groups = wmi_data_groups,
 	.release = wmi_dev_release,
-- 
1.9.1

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

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

* [PATCH 11/15] remoteproc: make device_type const
  2017-08-19  8:22 [PATCH 00/15] drivers: make device_type const Bhumika Goyal
                   ` (13 preceding siblings ...)
  2017-08-19  8:22 ` [PATCH 10/15] platform/x86: wmi: " Bhumika Goyal
@ 2017-08-19  8:22 ` Bhumika Goyal
       [not found] ` <1503130946-2854-1-git-send-email-bhumirks-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
                   ` (10 subsequent siblings)
  25 siblings, 0 replies; 37+ messages in thread
From: Bhumika Goyal @ 2017-08-19  8:22 UTC (permalink / raw)
  To: julia.lawall, bp, mchehab, daniel.vetter, jani.nikula, seanpaul,
	airlied, g.liakhovetski, tomas.winkler, dwmw2, computersforpeace,
	boris.brezillon, marek.vasut, richard, cyrille.pitchen, peda,
	kishon, bhelgaas, thierry.reding, jonathanh, dvhart, andy, ohad,
	bjorn.andersson, freude, schwidefsky, heiko.carstens, jth, jejb,
	martin.petersen, lduncan, cleech, johan, elder, gregkh,
	heikki.krogerus, linux-edac, linux-kernel, dri-devel
  Cc: Bhumika Goyal

Make this const as it is only stored in the type field of a device
structure, which is const.
Done using Coccinelle.

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
---
 drivers/remoteproc/remoteproc_core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/remoteproc/remoteproc_core.c b/drivers/remoteproc/remoteproc_core.c
index 364ef28..48b2c5d 100644
--- a/drivers/remoteproc/remoteproc_core.c
+++ b/drivers/remoteproc/remoteproc_core.c
@@ -1360,7 +1360,7 @@ static void rproc_type_release(struct device *dev)
 	kfree(rproc);
 }
 
-static struct device_type rproc_type = {
+static const struct device_type rproc_type = {
 	.name		= "remoteproc",
 	.release	= rproc_type_release,
 };
-- 
1.9.1

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

* [PATCH 11/15] remoteproc: make device_type const
  2017-08-19  8:22 [PATCH 00/15] drivers: make device_type const Bhumika Goyal
                   ` (15 preceding siblings ...)
       [not found] ` <1503130946-2854-1-git-send-email-bhumirks-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
@ 2017-08-19  8:22 ` Bhumika Goyal
  2017-08-19  8:22 ` Bhumika Goyal
                   ` (8 subsequent siblings)
  25 siblings, 0 replies; 37+ messages in thread
From: Bhumika Goyal @ 2017-08-19  8:22 UTC (permalink / raw)
  To: julia.lawall, bp, mchehab, daniel.vetter, jani.nikula, seanpaul,
	airlied, g.liakhovetski, tomas.winkler, dwmw2, computersforpeace,
	boris.brezillon, marek.vasut, richard, cyrille.pitchen, peda,
	kishon, bhelgaas, thierry.reding, jonathanh, dvhart, andy, ohad,
	bjorn.andersson, freude, schwidefsky, heiko.carstens, jth, jejb,
	martin.petersen, lduncan, cleech, johan, elder, gregkh,
	heikki.krogerus, linux-edac, linux-kernel, dri-devel
  Cc: Bhumika Goyal

Make this const as it is only stored in the type field of a device
structure, which is const.
Done using Coccinelle.

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
---
 drivers/remoteproc/remoteproc_core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/remoteproc/remoteproc_core.c b/drivers/remoteproc/remoteproc_core.c
index 364ef28..48b2c5d 100644
--- a/drivers/remoteproc/remoteproc_core.c
+++ b/drivers/remoteproc/remoteproc_core.c
@@ -1360,7 +1360,7 @@ static void rproc_type_release(struct device *dev)
 	kfree(rproc);
 }
 
-static struct device_type rproc_type = {
+static const struct device_type rproc_type = {
 	.name		= "remoteproc",
 	.release	= rproc_type_release,
 };
-- 
1.9.1

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

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

* [PATCH 11/15] remoteproc: make device_type const
  2017-08-19  8:22 [PATCH 00/15] drivers: make device_type const Bhumika Goyal
                   ` (16 preceding siblings ...)
  2017-08-19  8:22 ` [PATCH 11/15] remoteproc: " Bhumika Goyal
@ 2017-08-19  8:22 ` Bhumika Goyal
  2017-08-19  8:22 ` [PATCH 12/15] s390/zcrypt: " Bhumika Goyal
                   ` (7 subsequent siblings)
  25 siblings, 0 replies; 37+ messages in thread
From: Bhumika Goyal @ 2017-08-19  8:22 UTC (permalink / raw)
  To: julia.lawall, bp, mchehab, daniel.vetter, jani.nikula, seanpaul,
	airlied, g.liakhovetski, tomas.winkler, dwmw2, computersforpeace,
	boris.brezillon, marek.vasut, richard, cyrille.pitchen, peda,
	kishon, bhelgaas, thierry.reding, jonathanh, dvhart, andy, ohad,
	bjorn.andersson, freude, schwidefsky, heiko.carstens, jth, jejb,
	martin.petersen, lduncan, cleech, johan, elder, gregkh,
	heikki.krogerus, linux-edac, linux-kernel, dri-devel
  Cc: Bhumika Goyal

Make this const as it is only stored in the type field of a device
structure, which is const.
Done using Coccinelle.

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
---
 drivers/remoteproc/remoteproc_core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/remoteproc/remoteproc_core.c b/drivers/remoteproc/remoteproc_core.c
index 364ef28..48b2c5d 100644
--- a/drivers/remoteproc/remoteproc_core.c
+++ b/drivers/remoteproc/remoteproc_core.c
@@ -1360,7 +1360,7 @@ static void rproc_type_release(struct device *dev)
 	kfree(rproc);
 }
 
-static struct device_type rproc_type = {
+static const struct device_type rproc_type = {
 	.name		= "remoteproc",
 	.release	= rproc_type_release,
 };
-- 
1.9.1


______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

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

* [PATCH 11/15] remoteproc: make device_type const
       [not found] ` <1503130946-2854-1-git-send-email-bhumirks-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
  2017-08-19  8:22   ` [PATCH 06/15] mtd: " Bhumika Goyal
  2017-08-19  8:22   ` [PATCH 07/15] mux: " Bhumika Goyal
@ 2017-08-19  8:22   ` Bhumika Goyal
  2017-08-19  8:22   ` [PATCH 14/15] staging: greybus: " Bhumika Goyal
  3 siblings, 0 replies; 37+ messages in thread
From: Bhumika Goyal @ 2017-08-19  8:22 UTC (permalink / raw)
  To: julia.lawall-L2FTfq7BK8M, bp-Gina5bIWoIWzQB+pC5nmwQ,
	mchehab-DgEjT+Ai2ygdnm+yROfE0A,
	daniel.vetter-ral2JQCrhuEAvxtiuMwx3w,
	jani.nikula-VuQAYsv1563Yd54FQh9/CA,
	seanpaul-F7+t8E8rja9g9hUCZPvPmw, airlied-cv59FeDIM0c,
	g.liakhovetski-Mmb7MZpHnFY, tomas.winkler-ral2JQCrhuEAvxtiuMwx3w,
	dwmw2-wEGCiKHe2LqWVfeAwA7xHQ,
	computersforpeace-Re5JQEeQqe8AvxtiuMwx3w,
	boris.brezillon-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8,
	marek.vasut-Re5JQEeQqe8AvxtiuMwx3w, richard-/L3Ra7n9ekc,
	cyrille.pitchen-yU5RGvR974pGWvitb5QawA,
	peda-koto5C5qi+TLoDKTGw+V6w, kishon-l0cyMroinI0,
	bhelgaas-hpIqsD4AKlfQT0dZR+AlfA,
	thierry.reding-Re5JQEeQqe8AvxtiuMwx3w,
	jonathanh-DDmLM1+adcrQT0dZR+AlfA, dvhart-wEGCiKHe2LqWVfeAwA7xHQ,
	andy-wEGCiKHe2LqWVfeAwA7xHQ, ohad-Ix1uc/W3ht7QT0dZR+AlfA,
	bjorn.andersson-QSEj5FYQhm4dnm+yROfE0A,
	freude-tA70FqPdS9bQT0dZR+AlfA,
	schwidefsky-tA70FqPdS9bQT0dZR+AlfA,
	heiko.carstens-tA70FqPdS9bQT0dZR+AlfA,
	jth-DgEjT+Ai2ygdnm+yROfE0A,
	jejb-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8,
	martin.petersen-QHcLZuEGTsvQT0dZR+AlfA, lduncan-IBi9RG/b67k,
	cleech-H+wXaHxf7aLQT0dZR+AlfA, johan-DgEjT+Ai2ygdnm+yROfE0A,
	elder-DgEjT+Ai2ygdnm+yROfE0A,
	gregkh-hQyY1W1yCW8ekmWlsbkhG0B+6BGkLq7r,
	heikki.krogerus-VuQAYsv1563Yd54FQh9/CA,
	linux-edac-u79uwXL29TY76Z2rM5mHXA, linux-kernel
  Cc: Bhumika Goyal

Make this const as it is only stored in the type field of a device
structure, which is const.
Done using Coccinelle.

Signed-off-by: Bhumika Goyal <bhumirks-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
---
 drivers/remoteproc/remoteproc_core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/remoteproc/remoteproc_core.c b/drivers/remoteproc/remoteproc_core.c
index 364ef28..48b2c5d 100644
--- a/drivers/remoteproc/remoteproc_core.c
+++ b/drivers/remoteproc/remoteproc_core.c
@@ -1360,7 +1360,7 @@ static void rproc_type_release(struct device *dev)
 	kfree(rproc);
 }
 
-static struct device_type rproc_type = {
+static const struct device_type rproc_type = {
 	.name		= "remoteproc",
 	.release	= rproc_type_release,
 };
-- 
1.9.1

-- 
You received this message because you are subscribed to the Google Groups "open-iscsi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to open-iscsi+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To post to this group, send email to open-iscsi-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
Visit this group at https://groups.google.com/group/open-iscsi.
For more options, visit https://groups.google.com/d/optout.

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

* [PATCH 12/15] s390/zcrypt: make device_type const
  2017-08-19  8:22 [PATCH 00/15] drivers: make device_type const Bhumika Goyal
                   ` (17 preceding siblings ...)
  2017-08-19  8:22 ` Bhumika Goyal
@ 2017-08-19  8:22 ` Bhumika Goyal
  2017-08-19  8:22 ` [PATCH 13/15] scsi: " Bhumika Goyal
                   ` (6 subsequent siblings)
  25 siblings, 0 replies; 37+ messages in thread
From: Bhumika Goyal @ 2017-08-19  8:22 UTC (permalink / raw)
  To: julia.lawall, bp, mchehab, daniel.vetter, jani.nikula, seanpaul,
	airlied, g.liakhovetski, tomas.winkler, dwmw2, computersforpeace,
	boris.brezillon, marek.vasut, richard, cyrille.pitchen, peda,
	kishon, bhelgaas, thierry.reding, jonathanh, dvhart, andy, ohad,
	bjorn.andersson, freude, schwidefsky, heiko.carstens, jth, jejb,
	martin.petersen, lduncan, cleech, johan, elder, gregkh,
	heikki.krogerus, linux-edac, linux-kernel, dri-devel
  Cc: Bhumika Goyal

Make these const as they are only stored in the type field of a device
structure, which is const.
Done using Coccinelle.

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
---
 drivers/s390/crypto/ap_card.c  | 2 +-
 drivers/s390/crypto/ap_queue.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/s390/crypto/ap_card.c b/drivers/s390/crypto/ap_card.c
index 836efac9..0329148 100644
--- a/drivers/s390/crypto/ap_card.c
+++ b/drivers/s390/crypto/ap_card.c
@@ -153,7 +153,7 @@ static ssize_t ap_modalias_show(struct device *dev,
 	NULL
 };
 
-static struct device_type ap_card_type = {
+static const struct device_type ap_card_type = {
 	.name = "ap_card",
 	.groups = ap_card_dev_attr_groups,
 };
diff --git a/drivers/s390/crypto/ap_queue.c b/drivers/s390/crypto/ap_queue.c
index 0f1a5d0..e2a85c26 100644
--- a/drivers/s390/crypto/ap_queue.c
+++ b/drivers/s390/crypto/ap_queue.c
@@ -577,7 +577,7 @@ static ssize_t ap_interrupt_show(struct device *dev,
 	NULL
 };
 
-static struct device_type ap_queue_type = {
+static const struct device_type ap_queue_type = {
 	.name = "ap_queue",
 	.groups = ap_queue_dev_attr_groups,
 };
-- 
1.9.1

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

* [PATCH 13/15] scsi: make device_type const
  2017-08-19  8:22 [PATCH 00/15] drivers: make device_type const Bhumika Goyal
                   ` (18 preceding siblings ...)
  2017-08-19  8:22 ` [PATCH 12/15] s390/zcrypt: " Bhumika Goyal
@ 2017-08-19  8:22 ` Bhumika Goyal
  2017-08-25 21:30   ` Martin K. Petersen
  2017-08-19  8:22 ` [PATCH 14/15] staging: greybus: " Bhumika Goyal
                   ` (5 subsequent siblings)
  25 siblings, 1 reply; 37+ messages in thread
From: Bhumika Goyal @ 2017-08-19  8:22 UTC (permalink / raw)
  To: julia.lawall, bp, mchehab, daniel.vetter, jani.nikula, seanpaul,
	airlied, g.liakhovetski, tomas.winkler, dwmw2, computersforpeace,
	boris.brezillon, marek.vasut, richard, cyrille.pitchen, peda,
	kishon, bhelgaas, thierry.reding, jonathanh, dvhart, andy, ohad,
	bjorn.andersson, freude, schwidefsky, heiko.carstens, jth, jejb,
	martin.petersen, lduncan, cleech, johan, elder, gregkh,
	heikki.krogerus, linux-edac, linux-kernel, dri-devel
  Cc: Bhumika Goyal

Make these const as they are only stored in the type field of a device
structure, which is const.
Done using Coccinelle.

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
---
 drivers/scsi/fcoe/fcoe_sysfs.c      | 4 ++--
 drivers/scsi/scsi_transport_iscsi.c | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/scsi/fcoe/fcoe_sysfs.c b/drivers/scsi/fcoe/fcoe_sysfs.c
index 9cf3d56..5c8310b 100644
--- a/drivers/scsi/fcoe/fcoe_sysfs.c
+++ b/drivers/scsi/fcoe/fcoe_sysfs.c
@@ -659,13 +659,13 @@ static void fcoe_fcf_device_release(struct device *dev)
 	kfree(fcf);
 }
 
-static struct device_type fcoe_ctlr_device_type = {
+static const struct device_type fcoe_ctlr_device_type = {
 	.name = "fcoe_ctlr",
 	.groups = fcoe_ctlr_attr_groups,
 	.release = fcoe_ctlr_device_release,
 };
 
-static struct device_type fcoe_fcf_device_type = {
+static const struct device_type fcoe_fcf_device_type = {
 	.name = "fcoe_fcf",
 	.groups = fcoe_fcf_attr_groups,
 	.release = fcoe_fcf_device_release,
diff --git a/drivers/scsi/scsi_transport_iscsi.c b/drivers/scsi/scsi_transport_iscsi.c
index a424eae..b9513f8 100644
--- a/drivers/scsi/scsi_transport_iscsi.c
+++ b/drivers/scsi/scsi_transport_iscsi.c
@@ -1009,7 +1009,7 @@ static void iscsi_flashnode_sess_release(struct device *dev)
 	kfree(fnode_sess);
 }
 
-static struct device_type iscsi_flashnode_sess_dev_type = {
+static const struct device_type iscsi_flashnode_sess_dev_type = {
 	.name = "iscsi_flashnode_sess_dev_type",
 	.groups = iscsi_flashnode_sess_attr_groups,
 	.release = iscsi_flashnode_sess_release,
@@ -1195,7 +1195,7 @@ static void iscsi_flashnode_conn_release(struct device *dev)
 	kfree(fnode_conn);
 }
 
-static struct device_type iscsi_flashnode_conn_dev_type = {
+static const struct device_type iscsi_flashnode_conn_dev_type = {
 	.name = "iscsi_flashnode_conn_dev_type",
 	.groups = iscsi_flashnode_conn_attr_groups,
 	.release = iscsi_flashnode_conn_release,
-- 
1.9.1

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

* [PATCH 14/15] staging: greybus: make device_type const
  2017-08-19  8:22 [PATCH 00/15] drivers: make device_type const Bhumika Goyal
                   ` (20 preceding siblings ...)
  2017-08-19  8:22 ` [PATCH 14/15] staging: greybus: " Bhumika Goyal
@ 2017-08-19  8:22 ` Bhumika Goyal
  2017-08-19  8:22 ` Bhumika Goyal
                   ` (3 subsequent siblings)
  25 siblings, 0 replies; 37+ messages in thread
From: Bhumika Goyal @ 2017-08-19  8:22 UTC (permalink / raw)
  To: julia.lawall, bp, mchehab, daniel.vetter, jani.nikula, seanpaul,
	airlied, g.liakhovetski, tomas.winkler, dwmw2, computersforpeace,
	boris.brezillon, marek.vasut, richard, cyrille.pitchen, peda,
	kishon, bhelgaas, thierry.reding, jonathanh, dvhart, andy, ohad,
	bjorn.andersson, freude, schwidefsky, heiko.carstens, jth, jejb,
	martin.petersen, lduncan, cleech, johan, elder, gregkh,
	heikki.krogerus, linux-edac, linux-kernel, dri-devel
  Cc: Bhumika Goyal

Make this const as it is only stored in the type field of a device
structure, which is const.
Done using Coccinelle.

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
---
 drivers/staging/greybus/gbphy.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/greybus/gbphy.c b/drivers/staging/greybus/gbphy.c
index 603de6f..80c1da8 100644
--- a/drivers/staging/greybus/gbphy.c
+++ b/drivers/staging/greybus/gbphy.c
@@ -66,7 +66,7 @@ static int gb_gbphy_idle(struct device *dev)
 			   gb_gbphy_idle)
 };
 
-static struct device_type greybus_gbphy_dev_type = {
+static const struct device_type greybus_gbphy_dev_type = {
 	.name	 =	"gbphy_device",
 	.release =	gbphy_dev_release,
 	.pm	=	&gb_gbphy_pm_ops,
-- 
1.9.1

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

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

* [PATCH 14/15] staging: greybus: make device_type const
  2017-08-19  8:22 [PATCH 00/15] drivers: make device_type const Bhumika Goyal
                   ` (19 preceding siblings ...)
  2017-08-19  8:22 ` [PATCH 13/15] scsi: " Bhumika Goyal
@ 2017-08-19  8:22 ` Bhumika Goyal
  2017-08-19  8:22 ` Bhumika Goyal
                   ` (4 subsequent siblings)
  25 siblings, 0 replies; 37+ messages in thread
From: Bhumika Goyal @ 2017-08-19  8:22 UTC (permalink / raw)
  To: julia.lawall, bp, mchehab, daniel.vetter, jani.nikula, seanpaul,
	airlied, g.liakhovetski, tomas.winkler, dwmw2, computersforpeace,
	boris.brezillon, marek.vasut, richard, cyrille.pitchen, peda,
	kishon, bhelgaas, thierry.reding, jonathanh, dvhart, andy, ohad,
	bjorn.andersson, freude, schwidefsky, heiko.carstens, jth, jejb,
	martin.petersen, lduncan, cleech, johan, elder, gregkh,
	heikki.krogerus, linux-edac, linux-kernel, dri-devel
  Cc: Bhumika Goyal

Make this const as it is only stored in the type field of a device
structure, which is const.
Done using Coccinelle.

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
---
 drivers/staging/greybus/gbphy.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/greybus/gbphy.c b/drivers/staging/greybus/gbphy.c
index 603de6f..80c1da8 100644
--- a/drivers/staging/greybus/gbphy.c
+++ b/drivers/staging/greybus/gbphy.c
@@ -66,7 +66,7 @@ static int gb_gbphy_idle(struct device *dev)
 			   gb_gbphy_idle)
 };
 
-static struct device_type greybus_gbphy_dev_type = {
+static const struct device_type greybus_gbphy_dev_type = {
 	.name	 =	"gbphy_device",
 	.release =	gbphy_dev_release,
 	.pm	=	&gb_gbphy_pm_ops,
-- 
1.9.1

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

* [PATCH 14/15] staging: greybus: make device_type const
  2017-08-19  8:22 [PATCH 00/15] drivers: make device_type const Bhumika Goyal
                   ` (21 preceding siblings ...)
  2017-08-19  8:22 ` Bhumika Goyal
@ 2017-08-19  8:22 ` Bhumika Goyal
  2017-08-19  8:22 ` [PATCH 15/15] usb: " Bhumika Goyal
                   ` (2 subsequent siblings)
  25 siblings, 0 replies; 37+ messages in thread
From: Bhumika Goyal @ 2017-08-19  8:22 UTC (permalink / raw)
  To: julia.lawall, bp, mchehab, daniel.vetter, jani.nikula, seanpaul,
	airlied, g.liakhovetski, tomas.winkler, dwmw2, computersforpeace,
	boris.brezillon, marek.vasut, richard, cyrille.pitchen, peda,
	kishon, bhelgaas, thierry.reding, jonathanh, dvhart, andy, ohad,
	bjorn.andersson, freude, schwidefsky, heiko.carstens, jth, jejb,
	martin.petersen, lduncan, cleech, johan, elder, gregkh,
	heikki.krogerus, linux-edac, linux-kernel, dri-devel
  Cc: Bhumika Goyal

Make this const as it is only stored in the type field of a device
structure, which is const.
Done using Coccinelle.

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
---
 drivers/staging/greybus/gbphy.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/greybus/gbphy.c b/drivers/staging/greybus/gbphy.c
index 603de6f..80c1da8 100644
--- a/drivers/staging/greybus/gbphy.c
+++ b/drivers/staging/greybus/gbphy.c
@@ -66,7 +66,7 @@ static int gb_gbphy_idle(struct device *dev)
 			   gb_gbphy_idle)
 };
 
-static struct device_type greybus_gbphy_dev_type = {
+static const struct device_type greybus_gbphy_dev_type = {
 	.name	 =	"gbphy_device",
 	.release =	gbphy_dev_release,
 	.pm	=	&gb_gbphy_pm_ops,
-- 
1.9.1


______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

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

* [PATCH 14/15] staging: greybus: make device_type const
       [not found] ` <1503130946-2854-1-git-send-email-bhumirks-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
                     ` (2 preceding siblings ...)
  2017-08-19  8:22   ` [PATCH 11/15] remoteproc: " Bhumika Goyal
@ 2017-08-19  8:22   ` Bhumika Goyal
  3 siblings, 0 replies; 37+ messages in thread
From: Bhumika Goyal @ 2017-08-19  8:22 UTC (permalink / raw)
  To: julia.lawall-L2FTfq7BK8M, bp-Gina5bIWoIWzQB+pC5nmwQ,
	mchehab-DgEjT+Ai2ygdnm+yROfE0A,
	daniel.vetter-ral2JQCrhuEAvxtiuMwx3w,
	jani.nikula-VuQAYsv1563Yd54FQh9/CA,
	seanpaul-F7+t8E8rja9g9hUCZPvPmw, airlied-cv59FeDIM0c,
	g.liakhovetski-Mmb7MZpHnFY, tomas.winkler-ral2JQCrhuEAvxtiuMwx3w,
	dwmw2-wEGCiKHe2LqWVfeAwA7xHQ,
	computersforpeace-Re5JQEeQqe8AvxtiuMwx3w,
	boris.brezillon-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8,
	marek.vasut-Re5JQEeQqe8AvxtiuMwx3w, richard-/L3Ra7n9ekc,
	cyrille.pitchen-yU5RGvR974pGWvitb5QawA,
	peda-koto5C5qi+TLoDKTGw+V6w, kishon-l0cyMroinI0,
	bhelgaas-hpIqsD4AKlfQT0dZR+AlfA,
	thierry.reding-Re5JQEeQqe8AvxtiuMwx3w,
	jonathanh-DDmLM1+adcrQT0dZR+AlfA, dvhart-wEGCiKHe2LqWVfeAwA7xHQ,
	andy-wEGCiKHe2LqWVfeAwA7xHQ, ohad-Ix1uc/W3ht7QT0dZR+AlfA,
	bjorn.andersson-QSEj5FYQhm4dnm+yROfE0A,
	freude-tA70FqPdS9bQT0dZR+AlfA,
	schwidefsky-tA70FqPdS9bQT0dZR+AlfA,
	heiko.carstens-tA70FqPdS9bQT0dZR+AlfA,
	jth-DgEjT+Ai2ygdnm+yROfE0A,
	jejb-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8,
	martin.petersen-QHcLZuEGTsvQT0dZR+AlfA, lduncan-IBi9RG/b67k,
	cleech-H+wXaHxf7aLQT0dZR+AlfA, johan-DgEjT+Ai2ygdnm+yROfE0A,
	elder-DgEjT+Ai2ygdnm+yROfE0A,
	gregkh-hQyY1W1yCW8ekmWlsbkhG0B+6BGkLq7r,
	heikki.krogerus-VuQAYsv1563Yd54FQh9/CA,
	linux-edac-u79uwXL29TY76Z2rM5mHXA, linux-kernel
  Cc: Bhumika Goyal

Make this const as it is only stored in the type field of a device
structure, which is const.
Done using Coccinelle.

Signed-off-by: Bhumika Goyal <bhumirks-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
---
 drivers/staging/greybus/gbphy.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/greybus/gbphy.c b/drivers/staging/greybus/gbphy.c
index 603de6f..80c1da8 100644
--- a/drivers/staging/greybus/gbphy.c
+++ b/drivers/staging/greybus/gbphy.c
@@ -66,7 +66,7 @@ static int gb_gbphy_idle(struct device *dev)
 			   gb_gbphy_idle)
 };
 
-static struct device_type greybus_gbphy_dev_type = {
+static const struct device_type greybus_gbphy_dev_type = {
 	.name	 =	"gbphy_device",
 	.release =	gbphy_dev_release,
 	.pm	=	&gb_gbphy_pm_ops,
-- 
1.9.1

-- 
You received this message because you are subscribed to the Google Groups "open-iscsi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to open-iscsi+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To post to this group, send email to open-iscsi-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
Visit this group at https://groups.google.com/group/open-iscsi.
For more options, visit https://groups.google.com/d/optout.

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

* [PATCH 15/15] usb: make device_type const
  2017-08-19  8:22 [PATCH 00/15] drivers: make device_type const Bhumika Goyal
                   ` (22 preceding siblings ...)
  2017-08-19  8:22 ` Bhumika Goyal
@ 2017-08-19  8:22 ` Bhumika Goyal
       [not found]   ` <1503130946-2854-16-git-send-email-bhumirks-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
       [not found] ` <1503130946-2854-7-git-send-email-bhumirks@gmail.com>
       [not found] ` <1503130946-2854-12-git-send-email-bhumirks@gmail.com>
  25 siblings, 1 reply; 37+ messages in thread
From: Bhumika Goyal @ 2017-08-19  8:22 UTC (permalink / raw)
  To: julia.lawall, bp, mchehab, daniel.vetter, jani.nikula, seanpaul,
	airlied, g.liakhovetski, tomas.winkler, dwmw2, computersforpeace,
	boris.brezillon, marek.vasut, richard, cyrille.pitchen, peda,
	kishon, bhelgaas, thierry.reding, jonathanh, dvhart, andy, ohad,
	bjorn.andersson, freude, schwidefsky, heiko.carstens, jth, jejb,
	martin.petersen, lduncan, cleech, johan, elder, gregkh,
	heikki.krogerus, linux-edac, linux-kernel, dri-devel
  Cc: Bhumika Goyal

Make this const as it is only stored in the type field of a device
structure, which is const.
Done using Coccinelle.

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
---
 drivers/usb/common/ulpi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/usb/common/ulpi.c b/drivers/usb/common/ulpi.c
index 930e8f3..4aa5195 100644
--- a/drivers/usb/common/ulpi.c
+++ b/drivers/usb/common/ulpi.c
@@ -135,7 +135,7 @@ static void ulpi_dev_release(struct device *dev)
 	kfree(to_ulpi_dev(dev));
 }
 
-static struct device_type ulpi_dev_type = {
+static const struct device_type ulpi_dev_type = {
 	.name = "ulpi_device",
 	.groups = ulpi_dev_attr_groups,
 	.release = ulpi_dev_release,
-- 
1.9.1

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

* RE: [PATCH 05/15] mei: make device_type const
  2017-08-19  8:22 ` [PATCH 05/15] mei: " Bhumika Goyal
@ 2017-08-19 16:48   ` Winkler, Tomas
  0 siblings, 0 replies; 37+ messages in thread
From: Winkler, Tomas @ 2017-08-19 16:48 UTC (permalink / raw)
  To: Bhumika Goyal, julia.lawall, bp, mchehab, Vetter, Daniel,
	jani.nikula, seanpaul, airlied, g.liakhovetski, dwmw2,
	computersforpeace, boris.brezillon, marek.vasut, richard,
	cyrille.pitchen, peda, kishon, bhelgaas,
	thierry.reding@gmail.com


> Subject: [PATCH 05/15] mei: make device_type const
> 
> Make this const as it is only stored in the type field of a device structure,
> which is const.
> Done using Coccinelle.
> 
> Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
> ---
>  drivers/misc/mei/bus.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/misc/mei/bus.c b/drivers/misc/mei/bus.c index
> 40c7908..1ac10cb 100644
> --- a/drivers/misc/mei/bus.c
> +++ b/drivers/misc/mei/bus.c
> @@ -845,7 +845,7 @@ static void mei_cl_bus_dev_release(struct device
> *dev)
>  	kfree(cldev);
>  }
> 
> -static struct device_type mei_cl_device_type = {
> +static const struct device_type mei_cl_device_type = {
>  	.release	= mei_cl_bus_dev_release,
>  };
> 
LGTM
Thanks
Tomas 

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

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

* Re: [PATCH 01/15] EDAC: make device_type const
  2017-08-19  8:22 ` [PATCH 01/15] EDAC: " Bhumika Goyal
@ 2017-08-20 11:29   ` Borislav Petkov
  0 siblings, 0 replies; 37+ messages in thread
From: Borislav Petkov @ 2017-08-20 11:29 UTC (permalink / raw)
  To: Bhumika Goyal
  Cc: julia.lawall, mchehab, daniel.vetter, jani.nikula, seanpaul,
	airlied, g.liakhovetski, tomas.winkler, dwmw2, computersforpeace,
	boris.brezillon, marek.vasut, richard, cyrille.pitchen, peda,
	kishon, bhelgaas, thierry.reding, jonathanh, dvhart, andy, ohad,
	bjorn.andersson, freude, schwidefsky, heiko.carstens, jth, jejb,
	martin.petersen, lduncan, cleech, johan, elder, gregkh,
	heikki.krogerus

On Sat, Aug 19, 2017 at 01:52:12PM +0530, Bhumika Goyal wrote:
> Make these const as they are only stored in the type field of a device
> structure, which is const.
> Done using Coccinelle.
> 
> Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
> ---
>  drivers/edac/edac_mc_sysfs.c | 8 ++++----
>  drivers/edac/i7core_edac.c   | 4 ++--
>  2 files changed, 6 insertions(+), 6 deletions(-)

Applied, thanks.

-- 
Regards/Gruss,
    Boris.

Good mailing practices for 400: avoid top-posting and trim the reply.

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

* Re: [PATCH 06/15] mtd:  make device_type const
       [not found] ` <1503130946-2854-7-git-send-email-bhumirks@gmail.com>
@ 2017-08-21 20:12   ` Boris Brezillon
  0 siblings, 0 replies; 37+ messages in thread
From: Boris Brezillon @ 2017-08-21 20:12 UTC (permalink / raw)
  To: Bhumika Goyal
  Cc: julia.lawall, bp, mchehab, daniel.vetter, jani.nikula, seanpaul,
	airlied, g.liakhovetski, tomas.winkler, dwmw2, computersforpeace,
	marek.vasut, richard, cyrille.pitchen, peda, kishon, bhelgaas,
	thierry.reding, jonathanh, dvhart, andy, ohad, bjorn.andersson,
	freude, schwidefsky, heiko.carstens, jth, jejb, martin.petersen,
	lduncan, cleech, johan, elder, gregkh, heikki.krogerus,
	linux-edac

Le Sat, 19 Aug 2017 13:52:17 +0530,
Bhumika Goyal <bhumirks@gmail.com> a écrit :

> Make this const as it is only stored in the type field of a device
> structure, which is const.
> Done using Coccinelle.
> 

Applied to l2-mtd/master.

Thanks,

Boris

> Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
> ---
>  drivers/mtd/mtdcore.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/mtd/mtdcore.c b/drivers/mtd/mtdcore.c
> index f872a99..e7ea842 100644
> --- a/drivers/mtd/mtdcore.c
> +++ b/drivers/mtd/mtdcore.c
> @@ -340,7 +340,7 @@ static ssize_t mtd_bbtblocks_show(struct device *dev,
>  };
>  ATTRIBUTE_GROUPS(mtd);
>  
> -static struct device_type mtd_devtype = {
> +static const struct device_type mtd_devtype = {
>  	.name		= "mtd",
>  	.groups		= mtd_groups,
>  	.release	= mtd_release,

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

* Re: [PATCH 15/15] usb: make device_type const
       [not found]   ` <1503130946-2854-16-git-send-email-bhumirks-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
@ 2017-08-22 12:55     ` Heikki Krogerus
  0 siblings, 0 replies; 37+ messages in thread
From: Heikki Krogerus @ 2017-08-22 12:55 UTC (permalink / raw)
  To: Bhumika Goyal
  Cc: julia.lawall-L2FTfq7BK8M, bp-Gina5bIWoIWzQB+pC5nmwQ,
	mchehab-DgEjT+Ai2ygdnm+yROfE0A,
	daniel.vetter-ral2JQCrhuEAvxtiuMwx3w,
	jani.nikula-VuQAYsv1563Yd54FQh9/CA,
	seanpaul-F7+t8E8rja9g9hUCZPvPmw, airlied-cv59FeDIM0c,
	g.liakhovetski-Mmb7MZpHnFY, tomas.winkler-ral2JQCrhuEAvxtiuMwx3w,
	dwmw2-wEGCiKHe2LqWVfeAwA7xHQ,
	computersforpeace-Re5JQEeQqe8AvxtiuMwx3w,
	boris.brezillon-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8,
	marek.vasut-Re5JQEeQqe8AvxtiuMwx3w, richard-/L3Ra7n9ekc,
	cyrille.pitchen-yU5RGvR974pGWvitb5QawA,
	peda-koto5C5qi+TLoDKTGw+V6w, kishon-l0cyMroinI0,
	bhelgaas-hpIqsD4AKlfQT0dZR+AlfA,
	thierry.reding-Re5JQEeQqe8AvxtiuMwx3w,
	jonathanh-DDmLM1+adcrQT0dZR+AlfA, dvhart-wEGCiKHe2LqWVfeAwA7xHQ,
	andy-wEGCiKHe2LqWVfeAwA7xHQ, ohad-Ix1uc/W3ht7QT0dZR+AlfA,
	bjorn.andersson-QSEj5FYQhm4dnm+yROfE0A,
	freude-tA70FqPdS9bQT0dZR+AlfA,
	schwidefsky-tA70FqPdS9bQT0dZR+AlfA,
	heiko.carstens-tA70FqPdS9bQT0dZR+AlfA,
	jth-DgEjT+Ai2ygdnm+yROfE0A,
	jejb-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8,
	martin.petersen-QHcLZuEGTsvQT0dZR+AlfA, lduncan-IBi9RG/b67k,
	cleech-H+wXaHxf7aLQT0dZR+AlfA, johan-DgEjT+Ai2ygdnm+yROfE0A,
	elder-DgEjT+Ai2ygdnm+yROfE0A,
	gregkh-hQyY1W1yCW8ekmWlsbkhG0B+6BGkLq7r, linu

On Sat, Aug 19, 2017 at 01:52:26PM +0530, Bhumika Goyal wrote:
> Make this const as it is only stored in the type field of a device
> structure, which is const.
> Done using Coccinelle.
> 
> Signed-off-by: Bhumika Goyal <bhumirks-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>

Acked-by: Heikki Krogerus <heikki.krogerus-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>

> ---
>  drivers/usb/common/ulpi.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/usb/common/ulpi.c b/drivers/usb/common/ulpi.c
> index 930e8f3..4aa5195 100644
> --- a/drivers/usb/common/ulpi.c
> +++ b/drivers/usb/common/ulpi.c
> @@ -135,7 +135,7 @@ static void ulpi_dev_release(struct device *dev)
>  	kfree(to_ulpi_dev(dev));
>  }
>  
> -static struct device_type ulpi_dev_type = {
> +static const struct device_type ulpi_dev_type = {
>  	.name = "ulpi_device",
>  	.groups = ulpi_dev_attr_groups,
>  	.release = ulpi_dev_release,

Thanks,

-- 
heikki

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

* Re: [PATCH 08/15] PCI: make device_type const
       [not found]   ` <1503130946-2854-9-git-send-email-bhumirks-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
@ 2017-08-24 16:26     ` Bjorn Helgaas
  0 siblings, 0 replies; 37+ messages in thread
From: Bjorn Helgaas @ 2017-08-24 16:26 UTC (permalink / raw)
  To: Bhumika Goyal
  Cc: julia.lawall-L2FTfq7BK8M, bp-Gina5bIWoIWzQB+pC5nmwQ,
	mchehab-DgEjT+Ai2ygdnm+yROfE0A,
	daniel.vetter-ral2JQCrhuEAvxtiuMwx3w,
	jani.nikula-VuQAYsv1563Yd54FQh9/CA,
	seanpaul-F7+t8E8rja9g9hUCZPvPmw, airlied-cv59FeDIM0c,
	g.liakhovetski-Mmb7MZpHnFY, tomas.winkler-ral2JQCrhuEAvxtiuMwx3w,
	dwmw2-wEGCiKHe2LqWVfeAwA7xHQ,
	computersforpeace-Re5JQEeQqe8AvxtiuMwx3w,
	boris.brezillon-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8,
	marek.vasut-Re5JQEeQqe8AvxtiuMwx3w, richard-/L3Ra7n9ekc,
	cyrille.pitchen-yU5RGvR974pGWvitb5QawA,
	peda-koto5C5qi+TLoDKTGw+V6w, kishon-l0cyMroinI0,
	bhelgaas-hpIqsD4AKlfQT0dZR+AlfA,
	thierry.reding-Re5JQEeQqe8AvxtiuMwx3w,
	jonathanh-DDmLM1+adcrQT0dZR+AlfA, dvhart-wEGCiKHe2LqWVfeAwA7xHQ,
	andy-wEGCiKHe2LqWVfeAwA7xHQ, ohad-Ix1uc/W3ht7QT0dZR+AlfA,
	bjorn.andersson-QSEj5FYQhm4dnm+yROfE0A,
	freude-tA70FqPdS9bQT0dZR+AlfA,
	schwidefsky-tA70FqPdS9bQT0dZR+AlfA,
	heiko.carstens-tA70FqPdS9bQT0dZR+AlfA,
	jth-DgEjT+Ai2ygdnm+yROfE0A,
	jejb-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8,
	martin.petersen-QHcLZuEGTsvQT0dZR+AlfA, lduncan-IBi9RG/b67k,
	cleech-H+wXaHxf7aLQT0dZR+AlfA, johan-DgEjT+Ai2ygdnm+yROfE0A,
	elder-DgEjT+Ai2ygdnm+yROfE0A,
	gregkh-hQyY1W1yCW8ekmWlsbkhG0B+6BGkLq7r

On Sat, Aug 19, 2017 at 01:52:19PM +0530, Bhumika Goyal wrote:
> Make this const as it is only stored in the type field of a device
> structure, which is const.
> Done using Coccinelle.
> 
> Signed-off-by: Bhumika Goyal <bhumirks-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>

Applied to pci/misc for v4.14, thanks!

> ---
>  drivers/pci/endpoint/pci-epf-core.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/pci/endpoint/pci-epf-core.c b/drivers/pci/endpoint/pci-epf-core.c
> index 6877d6a..9d0de12 100644
> --- a/drivers/pci/endpoint/pci-epf-core.c
> +++ b/drivers/pci/endpoint/pci-epf-core.c
> @@ -27,7 +27,7 @@
>  #include <linux/pci-ep-cfs.h>
>  
>  static struct bus_type pci_epf_bus_type;
> -static struct device_type pci_epf_type;
> +static const struct device_type pci_epf_type;
>  
>  /**
>   * pci_epf_linkup() - Notify the function driver that EPC device has
> @@ -275,7 +275,7 @@ static void pci_epf_dev_release(struct device *dev)
>  	kfree(epf);
>  }
>  
> -static struct device_type pci_epf_type = {
> +static const struct device_type pci_epf_type = {
>  	.release	= pci_epf_dev_release,
>  };
>  
> -- 
> 1.9.1
> 
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* Re: [PATCH 03/15] [media] i2c: make device_type const
  2017-08-19  8:22 ` [PATCH 03/15] [media] i2c: " Bhumika Goyal
@ 2017-08-24 16:31   ` Guennadi Liakhovetski
  0 siblings, 0 replies; 37+ messages in thread
From: Guennadi Liakhovetski @ 2017-08-24 16:31 UTC (permalink / raw)
  To: Bhumika Goyal
  Cc: heikki.krogerus, linux-pci, heiko.carstens, dri-devel,
	bjorn.andersson, linux-tegra, thierry.reding, linux-mtd,
	daniel.vetter, kishon, freude, boris.brezillon, jejb, linux-scsi,
	richard, jonathanh, marek.vasut, fcoe-devel, dvhart,
	tomas.winkler, open-iscsi, linux-media, ohad, devel, linux-s390,
	linux-remoteproc, johan, julia.lawall, elder, bhelgaas, mchehab,
	linux-edac, cleech, jth, martin.petersen, greybus-dev

On Sat, 19 Aug 2017, Bhumika Goyal wrote:

> Make this const as it is only stored in the type field of a device
> structure, which is const.
> Done using Coccinelle.
> 
> Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>

Acked-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>

Thanks
Guennadi

> ---
>  drivers/media/i2c/soc_camera/mt9t031.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/media/i2c/soc_camera/mt9t031.c b/drivers/media/i2c/soc_camera/mt9t031.c
> index 714fb35..4802d30 100644
> --- a/drivers/media/i2c/soc_camera/mt9t031.c
> +++ b/drivers/media/i2c/soc_camera/mt9t031.c
> @@ -592,7 +592,7 @@ static int mt9t031_runtime_resume(struct device *dev)
>  	.runtime_resume		= mt9t031_runtime_resume,
>  };
>  
> -static struct device_type mt9t031_dev_type = {
> +static const struct device_type mt9t031_dev_type = {
>  	.name	= "MT9T031",
>  	.pm	= &mt9t031_dev_pm_ops,
>  };
> -- 
> 1.9.1
> 
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

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

* Re: [PATCH 11/15] remoteproc: make device_type const
       [not found]   ` <1503130946-2854-12-git-send-email-bhumirks-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
@ 2017-08-24 17:26     ` Bjorn Andersson
  0 siblings, 0 replies; 37+ messages in thread
From: Bjorn Andersson @ 2017-08-24 17:26 UTC (permalink / raw)
  To: Bhumika Goyal
  Cc: julia.lawall-L2FTfq7BK8M, bp-Gina5bIWoIWzQB+pC5nmwQ,
	mchehab-DgEjT+Ai2ygdnm+yROfE0A,
	daniel.vetter-ral2JQCrhuEAvxtiuMwx3w,
	jani.nikula-VuQAYsv1563Yd54FQh9/CA,
	seanpaul-F7+t8E8rja9g9hUCZPvPmw, airlied-cv59FeDIM0c,
	g.liakhovetski-Mmb7MZpHnFY, tomas.winkler-ral2JQCrhuEAvxtiuMwx3w,
	dwmw2-wEGCiKHe2LqWVfeAwA7xHQ,
	computersforpeace-Re5JQEeQqe8AvxtiuMwx3w,
	boris.brezillon-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8,
	marek.vasut-Re5JQEeQqe8AvxtiuMwx3w, richard-/L3Ra7n9ekc,
	cyrille.pitchen-yU5RGvR974pGWvitb5QawA,
	peda-koto5C5qi+TLoDKTGw+V6w, kishon-l0cyMroinI0,
	bhelgaas-hpIqsD4AKlfQT0dZR+AlfA,
	thierry.reding-Re5JQEeQqe8AvxtiuMwx3w,
	jonathanh-DDmLM1+adcrQT0dZR+AlfA, dvhart-wEGCiKHe2LqWVfeAwA7xHQ,
	andy-wEGCiKHe2LqWVfeAwA7xHQ, ohad-Ix1uc/W3ht7QT0dZR+AlfA,
	freude-tA70FqPdS9bQT0dZR+AlfA,
	schwidefsky-tA70FqPdS9bQT0dZR+AlfA,
	heiko.carstens-tA70FqPdS9bQT0dZR+AlfA,
	jth-DgEjT+Ai2ygdnm+yROfE0A,
	jejb-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8,
	martin.petersen-QHcLZuEGTsvQT0dZR+AlfA, lduncan-IBi9RG/b67k,
	cleech-H+wXaHxf7aLQT0dZR+AlfA, johan-DgEjT+Ai2ygdnm+yROfE0A,
	elder-DgEjT+Ai2ygdnm+yROfE0A,
	gregkh-hQyY1W1yCW8ekmWlsbkhG0B+6BGkLq7r,
	heikki.krogerus-VuQAYsv1563Yd54FQh9/CA, linux-e

On Sat 19 Aug 01:22 PDT 2017, Bhumika Goyal wrote:

> Make this const as it is only stored in the type field of a device
> structure, which is const.
> Done using Coccinelle.
> 
> Signed-off-by: Bhumika Goyal <bhumirks-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>

Applied, thanks.

Regards,
Bjorn

> ---
>  drivers/remoteproc/remoteproc_core.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/remoteproc/remoteproc_core.c b/drivers/remoteproc/remoteproc_core.c
> index 364ef28..48b2c5d 100644
> --- a/drivers/remoteproc/remoteproc_core.c
> +++ b/drivers/remoteproc/remoteproc_core.c
> @@ -1360,7 +1360,7 @@ static void rproc_type_release(struct device *dev)
>  	kfree(rproc);
>  }
>  
> -static struct device_type rproc_type = {
> +static const struct device_type rproc_type = {
>  	.name		= "remoteproc",
>  	.release	= rproc_type_release,
>  };
> -- 
> 1.9.1
> 

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

* Re: [PATCH 02/15] drm: make device_type const
  2017-08-19  8:22 ` [PATCH 02/15] drm: " Bhumika Goyal
@ 2017-08-25 13:36   ` Daniel Vetter
  0 siblings, 0 replies; 37+ messages in thread
From: Daniel Vetter @ 2017-08-25 13:36 UTC (permalink / raw)
  To: Bhumika Goyal
  Cc: heikki.krogerus, airlied, linux-pci, heiko.carstens, dri-devel,
	bjorn.andersson, linux-tegra, thierry.reding, linux-mtd,
	daniel.vetter, kishon, freude, boris.brezillon, jejb, linux-scsi,
	richard, jonathanh, marek.vasut, fcoe-devel, dvhart,
	tomas.winkler, open-iscsi, linux-media, ohad, devel, linux-s390,
	linux-remoteproc, johan, jani.nikula, julia.lawall, seanpaul,
	bhelgaas, mchehab, linux-edac, cleech, jth

On Sat, Aug 19, 2017 at 01:52:13PM +0530, Bhumika Goyal wrote:
> Make these const as they are only stored in the type field of a device
> structure, which is const.
> Done using Coccinelle.

I can't apply this, it's missing your s-o-b line. You can just replay with
that.

Thanks, Daniel

> ---
>  drivers/gpu/drm/drm_sysfs.c      | 2 +-
>  drivers/gpu/drm/ttm/ttm_module.c | 2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/gpu/drm/drm_sysfs.c b/drivers/gpu/drm/drm_sysfs.c
> index 1c5b5ce..84e4ebe 100644
> --- a/drivers/gpu/drm/drm_sysfs.c
> +++ b/drivers/gpu/drm/drm_sysfs.c
> @@ -39,7 +39,7 @@
>   * drm_connector_unregister().
>   */
>  
> -static struct device_type drm_sysfs_device_minor = {
> +static const struct device_type drm_sysfs_device_minor = {
>  	.name = "drm_minor"
>  };
>  
> diff --git a/drivers/gpu/drm/ttm/ttm_module.c b/drivers/gpu/drm/ttm/ttm_module.c
> index 66fc639..e6604e0 100644
> --- a/drivers/gpu/drm/ttm/ttm_module.c
> +++ b/drivers/gpu/drm/ttm/ttm_module.c
> @@ -37,7 +37,7 @@
>  static DECLARE_WAIT_QUEUE_HEAD(exit_q);
>  static atomic_t device_released;
>  
> -static struct device_type ttm_drm_class_type = {
> +static const struct device_type ttm_drm_class_type = {
>  	.name = "ttm",
>  	/**
>  	 * Add pm ops here.
> -- 
> 1.9.1
> 
> _______________________________________________
> dri-devel mailing list
> dri-devel@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/dri-devel

-- 
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch

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

* Re: [PATCH 13/15] scsi: make device_type const
  2017-08-19  8:22 ` [PATCH 13/15] scsi: " Bhumika Goyal
@ 2017-08-25 21:30   ` Martin K. Petersen
  0 siblings, 0 replies; 37+ messages in thread
From: Martin K. Petersen @ 2017-08-25 21:30 UTC (permalink / raw)
  To: Bhumika Goyal
  Cc: heikki.krogerus, airlied, linux-pci, heiko.carstens, dri-devel,
	bjorn.andersson, linux-tegra, thierry.reding, linux-mtd,
	daniel.vetter, kishon, freude, boris.brezillon, jejb, linux-scsi,
	richard, jonathanh, marek.vasut, fcoe-devel, dvhart,
	tomas.winkler, open-iscsi, linux-media, ohad, devel, linux-s390,
	linux-remoteproc, johan, jani.nikula, julia.lawall, seanpaul,
	bhelgaas, mchehab, linux-edac, cleech, jth


Bhumika,

> Make these const as they are only stored in the type field of a device
> structure, which is const.

Applied to 4.14/scsi-queue. Thanks!

-- 
Martin K. Petersen	Oracle Linux Engineering

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

end of thread, other threads:[~2017-08-25 21:30 UTC | newest]

Thread overview: 37+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-19  8:22 [PATCH 00/15] drivers: make device_type const Bhumika Goyal
2017-08-19  8:22 ` [PATCH 01/15] EDAC: " Bhumika Goyal
2017-08-20 11:29   ` Borislav Petkov
2017-08-19  8:22 ` [PATCH 02/15] drm: " Bhumika Goyal
2017-08-25 13:36   ` Daniel Vetter
2017-08-19  8:22 ` [PATCH 03/15] [media] i2c: " Bhumika Goyal
2017-08-24 16:31   ` Guennadi Liakhovetski
2017-08-19  8:22 ` [PATCH 04/15] [media] rc: " Bhumika Goyal
2017-08-19  8:22 ` [PATCH 05/15] mei: " Bhumika Goyal
2017-08-19 16:48   ` Winkler, Tomas
2017-08-19  8:22 ` [PATCH 06/15] mtd: " Bhumika Goyal
2017-08-19  8:22 ` Bhumika Goyal
2017-08-19  8:22 ` Bhumika Goyal
2017-08-19  8:22 ` [PATCH 07/15] mux: " Bhumika Goyal
2017-08-19  8:22 ` Bhumika Goyal
2017-08-19  8:22 ` Bhumika Goyal
2017-08-19  8:22 ` [PATCH 08/15] PCI: " Bhumika Goyal
     [not found]   ` <1503130946-2854-9-git-send-email-bhumirks-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2017-08-24 16:26     ` Bjorn Helgaas
2017-08-19  8:22 ` [PATCH 09/15] phy: tegra: " Bhumika Goyal
2017-08-19  8:22 ` [PATCH 10/15] platform/x86: wmi: " Bhumika Goyal
2017-08-19  8:22 ` [PATCH 11/15] remoteproc: " Bhumika Goyal
     [not found] ` <1503130946-2854-1-git-send-email-bhumirks-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2017-08-19  8:22   ` [PATCH 06/15] mtd: " Bhumika Goyal
2017-08-19  8:22   ` [PATCH 07/15] mux: " Bhumika Goyal
2017-08-19  8:22   ` [PATCH 11/15] remoteproc: " Bhumika Goyal
2017-08-19  8:22   ` [PATCH 14/15] staging: greybus: " Bhumika Goyal
2017-08-19  8:22 ` [PATCH 11/15] remoteproc: " Bhumika Goyal
2017-08-19  8:22 ` Bhumika Goyal
2017-08-19  8:22 ` [PATCH 12/15] s390/zcrypt: " Bhumika Goyal
2017-08-19  8:22 ` [PATCH 13/15] scsi: " Bhumika Goyal
2017-08-25 21:30   ` Martin K. Petersen
2017-08-19  8:22 ` [PATCH 14/15] staging: greybus: " Bhumika Goyal
2017-08-19  8:22 ` Bhumika Goyal
2017-08-19  8:22 ` Bhumika Goyal
2017-08-19  8:22 ` [PATCH 15/15] usb: " Bhumika Goyal
     [not found]   ` <1503130946-2854-16-git-send-email-bhumirks-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2017-08-22 12:55     ` Heikki Krogerus
     [not found] ` <1503130946-2854-7-git-send-email-bhumirks@gmail.com>
2017-08-21 20:12   ` [PATCH 06/15] mtd: " Boris Brezillon
     [not found] ` <1503130946-2854-12-git-send-email-bhumirks@gmail.com>
     [not found]   ` <1503130946-2854-12-git-send-email-bhumirks-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2017-08-24 17:26     ` [PATCH 11/15] remoteproc: " Bjorn Andersson

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).