[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20170821221223.0a44fe32@bbrezillon>
Date: Mon, 21 Aug 2017 22:12:23 +0200
From: Boris Brezillon <boris.brezillon@...e-electrons.com>
To: Bhumika Goyal <bhumirks@...il.com>
Cc: 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, 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
Subject: Re: [PATCH 06/15] mtd: make device_type const
Le Sat, 19 Aug 2017 13:52:17 +0530,
Bhumika Goyal <bhumirks@...il.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@...il.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,
Powered by blists - more mailing lists