* [11/15] remoteproc: make device_type const
@ 2017-08-19 8:22 Bhumika Goyal
0 siblings, 0 replies; 2+ 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, linux-media,
linux-mtd, linux-pci, linux-tegra, platform-driver-x86,
linux-remoteproc, linux-s390, fcoe-devel, linux-scsi, open-iscsi,
greybus-dev, devel, linux-usb
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,
};
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [11/15] remoteproc: make device_type const
@ 2017-08-24 17:26 Bjorn Andersson
0 siblings, 0 replies; 2+ messages in thread
From: Bjorn Andersson @ 2017-08-24 17:26 UTC (permalink / raw)
To: Bhumika Goyal
Cc: 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,
freude, schwidefsky, heiko.carstens, jth, jejb, martin.petersen,
lduncan, cleech, johan, elder, gregkh, heikki.krogerus,
linux-edac, linux-kernel, dri-devel, linux-media, linux-mtd,
linux-pci, linux-tegra, platform-driver-x86, linux-remoteproc,
linux-s390, fcoe-devel, linux-scsi, open-iscsi, greybus-dev,
devel, linux-usb
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@gmail.com>
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
>
---
To unsubscribe from this list: send the line "unsubscribe linux-edac" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-08-24 17:26 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-24 17:26 [11/15] remoteproc: make device_type const Bjorn Andersson
-- strict thread matches above, loose matches on Subject: below --
2017-08-19 8:22 Bhumika Goyal
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox