From patchwork Sat Aug 19 08:22:14 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhumika Goyal X-Patchwork-Id: 9910209 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 00F1860386 for ; Sat, 19 Aug 2017 08:24:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E792128C9D for ; Sat, 19 Aug 2017 08:24:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DBECD28DA1; Sat, 19 Aug 2017 08:24:01 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9ABEA28C9D for ; Sat, 19 Aug 2017 08:24:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751101AbdHSIYA (ORCPT ); Sat, 19 Aug 2017 04:24:00 -0400 Received: from mail-pg0-f66.google.com ([74.125.83.66]:35669 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750999AbdHSIXx (ORCPT ); Sat, 19 Aug 2017 04:23:53 -0400 Received: by mail-pg0-f66.google.com with SMTP id t80so11804661pgb.2; Sat, 19 Aug 2017 01:23:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=1/xvXgilI6Rswh+THrKk+9omJtOwagRsSxwu5FH9NKA=; b=Fy6quIjZlX/KvEscldy3wAAxX8ghugKcnR0em9J9DuJoV1PO87MKpOt4gTDbj+1z5j i4IaOyICXsKSJr8w6sO2szym43z6vfKASfecoG+JJza0arrCi/YBmYyqcC1HxaWO274l sNhuaa6ynhzufhj5FvWZtxBndwVj17UMo6IN8NigLa0+EVscMwIxBHFYXKxoKuM5kIbg MkHEOouy2u5mor7yTFVq/9yuMa5oJp4dV+nZIOtrLctuiv8LqY2HvwD5ga7tIoiBHX2s IaFo7xqUir1DxMma1b3tBzygeddghjV5Ckpukt7OwyS8PN8jCAwM5/ao6OgTfWIzhkov WPvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=1/xvXgilI6Rswh+THrKk+9omJtOwagRsSxwu5FH9NKA=; b=fKM6YCHNuvTCEAYVjeInvJmPy2DUIm4OCtYH+WfqMs6LBnFGvYrcipIj0XbuVjnwNq dkL8eBRH4M6OUghyteDYwSPgK35LQMAmEgi3HzBKlyfvIrqGra51ylPlz6A7XYh6BB0P R87FE73Wa57qwt4e2D2TCsg1DidgWQB6lBhrVmWnfv4gDBRbMZq8k5UF3xR+CopfkbZb 0L4U91jWLeEDND5Vsh3D9nRbmxZPBDYC2zRXUn6P6nVn21cUjrPlaRL0FZM7N+XdmtHj vhz96ddTt7FMZIQr2G32Rg0xmoqnqrDOi4cuZ8TF8JLbraVgmRJAEaNuYmZJND3fLjxZ QfaQ== X-Gm-Message-State: AHYfb5hsCwJkyszKOeoOVF8N0q56ob1rAdTOHXrYb9btaIFt7fun0IwT XdBhYgcs6GLUEA== X-Received: by 10.99.127.73 with SMTP id p9mr3559435pgn.441.1503131032949; Sat, 19 Aug 2017 01:23:52 -0700 (PDT) Received: from gmail.com ([59.94.206.141]) by smtp.gmail.com with ESMTPSA id o4sm12287646pga.47.2017.08.19.01.23.35 (version=TLS1 cipher=AES128-SHA bits=128/128); Sat, 19 Aug 2017 01:23:52 -0700 (PDT) Received: by gmail.com (sSMTP sendmail emulation); Sat, 19 Aug 2017 13:53:32 +0530 From: Bhumika Goyal To: 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, g.liakhovetski@gmx.de, 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 Cc: Bhumika Goyal Subject: [PATCH 03/15] [media] i2c: make device_type const Date: Sat, 19 Aug 2017 13:52:14 +0530 Message-Id: <1503130946-2854-4-git-send-email-bhumirks@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1503130946-2854-1-git-send-email-bhumirks@gmail.com> References: <1503130946-2854-1-git-send-email-bhumirks@gmail.com> Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 --- 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, };