[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1503130946-2854-3-git-send-email-bhumirks@gmail.com>
Date: Sat, 19 Aug 2017 13:52:13 +0530
From: Bhumika Goyal <bhumirks@...il.com>
To: julia.lawall@...6.fr, bp@...en8.de, mchehab@...nel.org,
daniel.vetter@...el.com, jani.nikula@...ux.intel.com,
seanpaul@...omium.org, airlied@...ux.ie, g.liakhovetski@....de,
tomas.winkler@...el.com, dwmw2@...radead.org,
computersforpeace@...il.com, boris.brezillon@...e-electrons.com,
marek.vasut@...il.com, richard@....at, cyrille.pitchen@...ev4u.fr,
peda@...ntia.se, kishon@...com, bhelgaas@...gle.com,
thierry.reding@...il.com, jonathanh@...dia.com,
dvhart@...radead.org, andy@...radead.org, ohad@...ery.com,
bjorn.andersson@...aro.org, freude@...ibm.com,
schwidefsky@...ibm.com, heiko.carstens@...ibm.com, jth@...nel.org,
jejb@...ux.vnet.ibm.com, martin.petersen@...cle.com,
lduncan@...e.com, cleech@...hat.com, johan@...nel.org,
elder@...nel.org, gregkh@...uxfoundation.org,
heikki.krogerus@...ux.intel.com, linux-edac@...r.kernel.org,
linux-kernel@...r.kernel.org, dri-devel@...ts.freedesktop.org,
linux-media@...r.kernel.org, linux-mtd@...ts.infradead.org,
linux-pci@...r.kernel.org, linux-tegra@...r.kernel.org,
platform-driver-x86@...r.kernel.org,
linux-remoteproc@...r.kernel.org, linux-s390@...r.kernel.org,
fcoe-devel@...n-fcoe.org, linux-scsi@...r.kernel.org,
open-iscsi@...glegroups.com, greybus-dev@...ts.linaro.org,
devel@...verdev.osuosl.org, linux-usb@...r.kernel.org
Cc: Bhumika Goyal <bhumirks@...il.com>
Subject: [PATCH 02/15] drm: make device_type const
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
Powered by blists - more mailing lists