* [06/15] mtd: 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/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 related [flat|nested] 2+ messages in thread
* [06/15] mtd: make device_type const
@ 2017-08-21 20:12 Boris Brezillon
0 siblings, 0 replies; 2+ 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, 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
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,
---
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-21 20:12 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-21 20:12 [06/15] mtd: make device_type const Boris Brezillon
-- 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