Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753935AbdHXQgw (ORCPT ); Thu, 24 Aug 2017 12:36:52 -0400 Received: from mout.gmx.net ([212.227.17.22]:55744 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753905AbdHXQgt (ORCPT ); Thu, 24 Aug 2017 12:36:49 -0400 Date: Thu, 24 Aug 2017 18:31:19 +0200 (CEST) From: Guennadi Liakhovetski X-X-Sender: lyakh@axis700.grange To: Bhumika Goyal cc: 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, 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 Subject: Re: [PATCH 03/15] [media] i2c: make device_type const In-Reply-To: <1503130946-2854-4-git-send-email-bhumirks@gmail.com> Message-ID: References: <1503130946-2854-1-git-send-email-bhumirks@gmail.com> <1503130946-2854-4-git-send-email-bhumirks@gmail.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Provags-ID: V03:K0:xhpkcMnb4zvz1L/x8rqs/S9ZCH6m4fQ4ofrBVa5Ij4szj9nQipa ie1UgXl5sygout3OPcr2kTGM6QjmedkzCfxYU7JyTlMVJ3Rg9XIOl+a0f1yuEu0km0b4bke 29VmpgRUfs+ZE3KpQdDZeXmNsP9nDPxzoagePY07XPrI+qqZGLhIpVDricFY5+9FfhyqZP/ JXHtI+LYeHv3Yv0AQLKuQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:D03G4m/E1cA=:PaGi7Q4tYKEgS60kGur2ZR ktobMecm9jln9VO95JkoR8nEw1fEyE2OOqPqtIWDtzEcD3sUzd/7UaWyzUC+OgpkV+pgdXbxI 0tRbuq1q08s++ldi1ouqGtPu52j6fw+WmkuSsN9/uqigESJq8vIl5PleGMxAiK73m5kpdrpC+ /Tp1y3tLHfvn6qlQbCfAnVd6zw5gVVSMRL9biu8FR4YLvyD5i/2kfB9tL/s3T3FcSkrpp3FZ3 YSV6UmlfOLXsd4dAG+kV9cCVV0cCPVH5YkXA5X+3rzd0dGc0h7XCCvfwS3VjVvSyuhqapkc9s fekrJt7TEkq3DWdvVamfBm7fSgwIRrCCwx0F7OC4Uc32i6yt989xzGvchXkdeyzMycjTAA6u4 6iIXCNYbNysbyeSrsuNOt37z91a6Mv/05q4uN6RTSuGdzSOkNaBZEDhzULL8EgjMvxJ0rdOBK A838sN5im9tnM5IS13qyN9qOOUAbcqmJQE9rYRcXwQXyfjBeNFTUxrYktBg64nXA3QkaePc3A CKbvSu13f+Ag1HqXvKNOwziLG7kvib8iP8vS0Y34J11iq4Nc46oJ2wlq6pOp1BcLMO+y5uCFv /fqTNG0OMcXpHS09CBXDvjc+PQB1CGQFVtYK/PM863I80MeqTS37QWd8E6R6cvz8a6DdQiUXM j93RK1+nWigigV1hqICiWU/AxSP9gDQOvP+Hsi6D4TT+9v0r3xT5IHXX55JoWEion41jQjv+r b4D073tuBkuIt8kJQzMcma+hfWR+HQvlRwKHP5OQdhw/2XPxj78PwCdJRPJS3TdEkm/hdNUI7 PPsG1hWnjyyYzLEza11/b+byAYnG/ZqDAveRzmcuETwbn1W7c0= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 940 Lines: 33 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 Acked-by: Guennadi Liakhovetski 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 >