[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Pine.LNX.4.64.1708241830240.3709@axis700.grange>
Date: Thu, 24 Aug 2017 18:31:19 +0200 (CEST)
From: Guennadi Liakhovetski <g.liakhovetski@....de>
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, 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
Subject: Re: [PATCH 03/15] [media] i2c: make device_type const
On Sat, 19 Aug 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@...il.com>
Acked-by: Guennadi Liakhovetski <g.liakhovetski@....de>
Thanks
Guennadi
> ---
> drivers/media/i2c/soc_camera/mt9t031.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/media/i2c/soc_camera/mt9t031.c b/drivers/media/i2c/soc_camera/mt9t031.c
> index 714fb35..4802d30 100644
> --- a/drivers/media/i2c/soc_camera/mt9t031.c
> +++ b/drivers/media/i2c/soc_camera/mt9t031.c
> @@ -592,7 +592,7 @@ static int mt9t031_runtime_resume(struct device *dev)
> .runtime_resume = mt9t031_runtime_resume,
> };
>
> -static struct device_type mt9t031_dev_type = {
> +static const struct device_type mt9t031_dev_type = {
> .name = "MT9T031",
> .pm = &mt9t031_dev_pm_ops,
> };
> --
> 1.9.1
>
Powered by blists - more mailing lists