All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bhumika Goyal <bhumirks@gmail.com>
To: julia.lawall@lip6.fr, bp@alien8.de, mchehab@kernel.org,
	daniel.vetter@intel.com, jani.nikula@linux.intel.com,
	seanpaul@chromium.org, airlied@linux.ie, g.liakhovetski@gmx.de,
	tomas.winkler@intel.com, dwmw2@infradead.org,
	computersforpeace@gmail.com, boris.brezillon@free-electrons.com,
	marek.vasut@gmail.com, richard@nod.at,
	cyrille.pitchen@wedev4u.fr, peda@axentia.se, kishon@ti.com,
	bhelgaas@google.com, thierry.reding@gmail.com,
	jonathanh@nvidia.com, dvhart@infradead.org, andy@infradead.org,
	ohad@wizery.com, bjorn.andersson@linaro.org, freude@de.ibm.com,
	schwidefsky@de.ibm.com, heiko.carstens@de.ibm.com,
	jth@kernel.org, jejb@linux.vnet.ibm.com,
	martin.petersen@oracle.com, lduncan@suse.com, cleech@redhat.com,
	johan@kernel.org, elder@kernel.org, gregkh@linuxfoundation.org,
	heikki.krogerus@linux.intel.com, linux-edac@vger.kernel.org,
	linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org,
	linux-media@vger.kernel.org, linux-mtd@lists.infradead.org,
	linux-pci@vger.kernel.org, linux-tegra@vger.kernel.org,
	platform-driver-x86@vger.kernel.org,
	linux-remoteproc@vger.kernel.org, linux-s390@vger.kernel.org,
	fcoe-devel@open-fcoe.org, linux-scsi@vger.kernel.org,
	open-iscsi@googlegroups.com, greybus-dev@lists.linaro.org,
	devel@driverdev.osuosl.org, linux-usb@vger.kernel.org
Cc: Bhumika Goyal <bhumirks@gmail.com>
Subject: [PATCH 10/15] platform/x86: wmi: make device_type const
Date: Sat, 19 Aug 2017 13:52:21 +0530	[thread overview]
Message-ID: <1503130946-2854-11-git-send-email-bhumirks@gmail.com> (raw)
In-Reply-To: <1503130946-2854-1-git-send-email-bhumirks@gmail.com>

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

WARNING: multiple messages have this Message-ID (diff)
From: Bhumika Goyal <bhumirks@gmail.com>
To: julia.lawall@lip6.fr, bp@alien8.de, mchehab@kernel.org,
	daniel.vetter@intel.com, jani.nikula@linux.intel.com,
	seanpaul@chromium.org, airlied@linux.ie, g.liakhovetski@gmx.de,
	tomas.winkler@intel.com, dwmw2@infradead.org,
	computersforpeace@gmail.com, boris.brezillon@free-electrons.com,
	marek.vasut@gmail.com, richard@nod.at,
	cyrille.pitchen@wedev4u.fr, peda@axentia.se, kishon@ti.com,
	bhelgaas@google.com, thierry.reding@gmail.com,
	jonathanh@nvidia.com, dvhart@infradead.org, andy@infradead.org,
	ohad@wizery.com, bjorn.andersson@linaro.org, freude@de.ibm.com,
	schwidefsky@de.ibm.com, heiko.carstens@de.ibm.com,
	jth@kernel.org, jejb@linux.vnet.ibm.com,
	martin.petersen@oracle.com, lduncan@suse.com, cleech@redhat.com,
	johan@kernel.org, elder@kernel.org, gregkh@linuxfoundation.org,
	heikki.krogerus@linux.intel.com, linux-edac@vger.kernel.org,
	linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org,
	linux-media@vger.kernel.org, linux-mtd@lists.infradead.org,
	linux-pci@vger.kernel.org, linux-tegra@vger.kernel.org,
	platform-driver-x86@vger.kernel.org,
	linux-remoteproc@vger.kernel.org, linux-s390@vger.kernel.org,
	fcoe-devel@open-fcoe.org, linux-scsi@vger.kernel.org,
	open-iscsi@googlegroups.com, greybus-dev@lists.linaro.org,
	devel@driverdev.osuosl.org, linux-usb@vger.kernel.org
Cc: Bhumika Goyal <bhumirks@gmail.com>
Subject: [10/15] platform/x86: wmi: make device_type const
Date: Sat, 19 Aug 2017 13:52:21 +0530	[thread overview]
Message-ID: <1503130946-2854-11-git-send-email-bhumirks@gmail.com> (raw)

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,

WARNING: multiple messages have this Message-ID (diff)
From: Bhumika Goyal <bhumirks@gmail.com>
To: julia.lawall@lip6.fr, bp@alien8.de, mchehab@kernel.org,
	daniel.vetter@intel.com, jani.nikula@linux.intel.com,
	seanpaul@chromium.org, airlied@linux.ie, g.liakhovetski@gmx.de,
	tomas.winkler@intel.com, dwmw2@infradead.org,
	computersforpeace@gmail.com, boris.brezillon@free-electrons.com,
	marek.vasut@gmail.com, richard@nod.at,
	cyrille.pitchen@wedev4u.fr, peda@axentia.se, kishon@ti.com,
	bhelgaas@google.com, thierry.reding@gmail.com,
	jonathanh@nvidia.com, dvhart@infradead.org, andy@infradead.org,
	ohad@wizery.com, bjorn.andersson@linaro.org, freude@de.ibm.com,
	schwidefsky@de.ibm.com, heiko.carstens@de.ibm.com,
	jth@kernel.org, jejb@linux.vnet.ibm.com,
	martin.petersen@oracle.com, lduncan@suse.com, cleech@redhat.com,
	johan@kernel.org, elder@kernel.org, gregkh@linuxfoundation.org,
	heikki.krogerus@linux.intel.com, linux-edac@vger.kernel.org,
	linux-kernel@vger.kernel.org, dri-devel@li
Cc: Bhumika Goyal <bhumirks@gmail.com>
Subject: [PATCH 10/15] platform/x86: wmi: make device_type const
Date: Sat, 19 Aug 2017 13:52:21 +0530	[thread overview]
Message-ID: <1503130946-2854-11-git-send-email-bhumirks@gmail.com> (raw)
In-Reply-To: <1503130946-2854-1-git-send-email-bhumirks@gmail.com>

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

  parent reply	other threads:[~2017-08-19  8:22 UTC|newest]

Thread overview: 136+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-19  8:22 [PATCH 00/15] drivers: make device_type const Bhumika Goyal
2017-08-19  8:22 ` Bhumika Goyal
2017-08-19  8:22 ` [PATCH 01/15] EDAC: " Bhumika Goyal
2017-08-19  8:22 ` Bhumika Goyal
2017-08-19  8:22   ` Bhumika Goyal
2017-08-19  8:22   ` [01/15] " Bhumika Goyal
2017-08-20 11:29   ` [PATCH 01/15] " Borislav Petkov
2017-08-20 11:29     ` [01/15] " Borislav Petkov
2017-08-20 11:29     ` [PATCH 01/15] " Borislav Petkov
2017-08-19  8:22 ` Bhumika Goyal
2017-08-19  8:22 ` [PATCH 02/15] drm: " Bhumika Goyal
2017-08-19  8:22   ` Bhumika Goyal
2017-08-19  8:22   ` [02/15] " Bhumika Goyal
2017-08-25 13:36   ` [PATCH 02/15] " Daniel Vetter
2017-08-25 13:36     ` Daniel Vetter
2017-08-25 13:36     ` [02/15] " Daniel Vetter
2017-08-25 13:36     ` [PATCH 02/15] " Daniel Vetter
2017-08-19  8:22 ` Bhumika Goyal
2017-08-19  8:22 ` Bhumika Goyal
2017-08-19  8:22 ` [PATCH 03/15] [media] i2c: " Bhumika Goyal
2017-08-19  8:22 ` Bhumika Goyal
2017-08-19  8:22 ` Bhumika Goyal
2017-08-19  8:22   ` Bhumika Goyal
2017-08-19  8:22   ` [03/15,media] " Bhumika Goyal
2017-08-24 16:31   ` [PATCH 03/15] [media] " Guennadi Liakhovetski
2017-08-24 16:31     ` Guennadi Liakhovetski
2017-08-24 16:31     ` [03/15,media] " Guennadi Liakhovetski
2017-08-24 16:31     ` [PATCH 03/15] [media] " Guennadi Liakhovetski
2017-08-19  8:22 ` [PATCH 04/15] [media] rc: " Bhumika Goyal
2017-08-19  8:22 ` Bhumika Goyal
2017-08-19  8:22 ` Bhumika Goyal
2017-08-19  8:22   ` Bhumika Goyal
2017-08-19  8:22   ` [04/15,media] " Bhumika Goyal
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
2017-08-19  8:22   ` Bhumika Goyal
2017-08-19  8:22   ` [05/15] " Bhumika Goyal
2017-08-19 16:48   ` [PATCH 05/15] " Winkler, Tomas
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 ` Bhumika Goyal
2017-08-19  8:22 ` Bhumika Goyal
2017-08-19  8:22   ` Bhumika Goyal
2017-08-19  8:22   ` [06/15] " Bhumika Goyal
2017-08-21 20:12   ` [PATCH 06/15] " Boris Brezillon
2017-08-21 20:12     ` [06/15] " Boris Brezillon
2017-08-21 20:12     ` [PATCH 06/15] " Boris Brezillon
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   ` [07/15] " Bhumika Goyal
2017-08-29  8:49   ` [PATCH 07/15] " Peter Rosin
2017-08-19  8:22 ` 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
2017-08-19  8:22 ` Bhumika Goyal
2017-08-19  8:22 ` Bhumika Goyal
2017-08-19  8:22   ` Bhumika Goyal
2017-08-19  8:22   ` [08/15] " Bhumika Goyal
     [not found]   ` <1503130946-2854-9-git-send-email-bhumirks-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2017-08-24 16:26     ` [PATCH 08/15] " Bjorn Helgaas
2017-08-24 16:26       ` [08/15] " Bjorn Helgaas
2017-08-24 16:26       ` [PATCH 08/15] " Bjorn Helgaas
2017-08-19  8:22 ` [PATCH 09/15] phy: tegra: " Bhumika Goyal
2017-08-19  8:22   ` Bhumika Goyal
2017-08-19  8:22   ` [09/15] " Bhumika Goyal
2017-08-19  8:22 ` [PATCH 09/15] " Bhumika Goyal
2017-08-19  8:22 ` Bhumika Goyal
2017-08-19  8:22 ` Bhumika Goyal [this message]
2017-08-19  8:22   ` [PATCH 10/15] platform/x86: wmi: " Bhumika Goyal
2017-08-19  8:22   ` [10/15] " Bhumika Goyal
2017-08-30 19:23   ` [PATCH 10/15] " Andy Shevchenko
2017-08-31  5:49     ` Bhumika Goyal
2017-08-19  8:22 ` 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 ` Bhumika Goyal
2017-08-19  8:22 ` Bhumika Goyal
2017-08-19  8:22 ` 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 ` Bhumika Goyal
2017-08-19  8:22   ` Bhumika Goyal
2017-08-19  8:22   ` [12/15] " Bhumika Goyal
2017-08-19  8:22 ` [PATCH 12/15] " Bhumika Goyal
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
2017-08-19  8:22   ` [13/15] " Bhumika Goyal
2017-08-25 21:30   ` [PATCH 13/15] " Martin K. Petersen
2017-08-25 21:30     ` Martin K. Petersen
2017-08-25 21:30     ` [13/15] " Martin K. Petersen
2017-08-25 21:30     ` [PATCH 13/15] " Martin K. Petersen
2017-08-19  8:22 ` Bhumika Goyal
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 ` Bhumika Goyal
2017-08-19  8:22   ` [14/15] " Bhumika Goyal
2017-08-19  8:22   ` [PATCH 14/15] " 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
2017-08-19  8:22 ` Bhumika Goyal
2017-08-19  8:22 ` Bhumika Goyal
2017-08-19  8:22   ` Bhumika Goyal
2017-08-19  8:22   ` [15/15] " Bhumika Goyal
2017-08-22 12:55   ` [PATCH 15/15] " Heikki Krogerus
2017-08-22 12:55     ` [15/15] " Heikki Krogerus
2017-08-22 12:55     ` [PATCH 15/15] " Heikki Krogerus
     [not found] ` <1503130946-2854-1-git-send-email-bhumirks-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
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   ` [PATCH 03/15] [media] i2c: " Bhumika Goyal
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  8:22   ` [PATCH 06/15] mtd: " 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   ` [PATCH 08/15] PCI: " Bhumika Goyal
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
2017-08-19  8:22     ` [11/15] " Bhumika Goyal
2017-08-19  8:22     ` [PATCH 11/15] " Bhumika Goyal
     [not found]     ` <1503130946-2854-12-git-send-email-bhumirks-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2017-08-24 17:26       ` Bjorn Andersson
2017-08-24 17:26         ` [11/15] " Bjorn Andersson
2017-08-24 17:26         ` [PATCH 11/15] " Bjorn Andersson
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-19  8:22   ` [PATCH 14/15] staging: greybus: " Bhumika Goyal
2017-08-19  8:22   ` [PATCH 15/15] usb: " Bhumika Goyal

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1503130946-2854-11-git-send-email-bhumirks@gmail.com \
    --to=bhumirks@gmail.com \
    --cc=airlied@linux.ie \
    --cc=andy@infradead.org \
    --cc=bhelgaas@google.com \
    --cc=bjorn.andersson@linaro.org \
    --cc=boris.brezillon@free-electrons.com \
    --cc=bp@alien8.de \
    --cc=cleech@redhat.com \
    --cc=computersforpeace@gmail.com \
    --cc=cyrille.pitchen@wedev4u.fr \
    --cc=daniel.vetter@intel.com \
    --cc=devel@driverdev.osuosl.org \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=dvhart@infradead.org \
    --cc=dwmw2@infradead.org \
    --cc=elder@kernel.org \
    --cc=fcoe-devel@open-fcoe.org \
    --cc=freude@de.ibm.com \
    --cc=g.liakhovetski@gmx.de \
    --cc=gregkh@linuxfoundation.org \
    --cc=greybus-dev@lists.linaro.org \
    --cc=heikki.krogerus@linux.intel.com \
    --cc=heiko.carstens@de.ibm.com \
    --cc=jani.nikula@linux.intel.com \
    --cc=jejb@linux.vnet.ibm.com \
    --cc=johan@kernel.org \
    --cc=jonathanh@nvidia.com \
    --cc=jth@kernel.org \
    --cc=julia.lawall@lip6.fr \
    --cc=kishon@ti.com \
    --cc=lduncan@suse.com \
    --cc=linux-edac@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-media@vger.kernel.org \
    --cc=linux-mtd@lists.infradead.org \
    --cc=linux-pci@vger.kernel.org \
    --cc=linux-remoteproc@vger.kernel.org \
    --cc=linux-s390@vger.kernel.org \
    --cc=linux-scsi@vger.kernel.org \
    --cc=linux-tegra@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=marek.vasut@gmail.com \
    --cc=martin.petersen@oracle.com \
    --cc=mchehab@kernel.org \
    --cc=ohad@wizery.com \
    --cc=open-iscsi@googlegroups.com \
    --cc=peda@axentia.se \
    --cc=platform-driver-x86@vger.kernel.org \
    --cc=richard@nod.at \
    --cc=schwidefsky@de.ibm.com \
    --cc=seanpaul@chromium.org \
    --cc=thierry.reding@gmail.com \
    --cc=tomas.winkler@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.