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 09/15] phy: tegra: make device_type const
Date: Sat, 19 Aug 2017 13:52:20 +0530 [thread overview]
Message-ID: <1503130946-2854-10-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/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
next prev parent reply other threads:[~2017-08-19 8:25 UTC|newest]
Thread overview: 24+ 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 ` [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 8:22 ` [PATCH 06/15] mtd: " Bhumika Goyal
2017-08-21 20:12 ` Boris Brezillon
2017-08-19 8:22 ` [PATCH 07/15] mux: " Bhumika Goyal
2017-08-19 8:22 ` [PATCH 08/15] PCI: " Bhumika Goyal
2017-08-24 16:26 ` Bjorn Helgaas
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 ` [PATCH 11/15] remoteproc: " Bhumika Goyal
2017-08-24 17:26 ` Bjorn Andersson
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 ` [PATCH 15/15] usb: " Bhumika Goyal
2017-08-22 12:55 ` Heikki Krogerus
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-10-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 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).