From patchwork Sat Aug 19 08:22:20 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhumika Goyal X-Patchwork-Id: 9910265 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 27F9560386 for ; Sat, 19 Aug 2017 08:26:03 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1A81228D9F for ; Sat, 19 Aug 2017 08:26:03 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0EC8A28DA7; Sat, 19 Aug 2017 08:26:03 +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=unavailable 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 CB29F28D9F for ; Sat, 19 Aug 2017 08:26:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752547AbdHSIZ6 (ORCPT ); Sat, 19 Aug 2017 04:25:58 -0400 Received: from mail-pf0-f195.google.com ([209.85.192.195]:36704 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751990AbdHSIZu (ORCPT ); Sat, 19 Aug 2017 04:25:50 -0400 Received: by mail-pf0-f195.google.com with SMTP id t83so2597155pfj.3; Sat, 19 Aug 2017 01:25:50 -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=M0eBE3RCrh9DMJJyvJFdfI6xOAm6ByiDgOTxdMt+yQ8=; b=QTv/zvSNiF+SF2q5KyeIt5MPbDG9B39T1O53Rf4t+YRMdeXSCn9NKRp2uX8b5a/qZp YoskUWMHUIGMbTY8chj8AZ3AjrsL0bxu8gg3iqeqPdqJhPDgpmZo0oOVX2jIMnw15yMZ fFgeX21t3x4oBR9Lod2dYn5xPCoeLsI1YvVxCgEM7qRC5P9oSYhoum3qqXKcibiT5tr9 fabpc8/2Kojpewro2ZSFakymjpb2OxerqpB3mPmZViBG68mw/P5o0KeZnYdU8phH2kyl C7dgGsveFYH1fnir7WqRvKFZYbV23AvDeUUg2oaixPxV/8jsrZZ0g1iNnrDqzo/sGXHG 4pOQ== 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=M0eBE3RCrh9DMJJyvJFdfI6xOAm6ByiDgOTxdMt+yQ8=; b=p04ww7YqhEmfnKdxNmlkOks5gfmCKWbAHfTh7aiZbPOtxiHj4JixZEyaAiH3CCYixx Un/ro85y4uzR9mmHKUQXUEo9HbDJM7xgVO+ZyopV+T2ddklMbx2FQIdzQpJiFjwqKVuS BFjDLFQHmpSJir8IXJezmGCy1H2WjRkaLS55MbiimaInj4/SXDqk+tNkBuJEQOL0mW57 rP1iCUCerVLpVB/BWyormnpagERLblRCszeCfgCYY5hoYKNSNOb9n1ZwYVKHebv8Q1mT 53hOjzwseThKLHDxMt3kRLMshamU+Yi5pbDXL4NgSnf7DNnMiTRToh9t7BOtn0dcgz23 R9bQ== X-Gm-Message-State: AHYfb5h5Po0TzdZZEa7G3PeYUs7c1BLoUKhBgo9k1tExDnXI4AkkM5iY 0h5E186TR9PYPg== X-Received: by 10.84.210.65 with SMTP id z59mr12753827plh.450.1503131149895; Sat, 19 Aug 2017 01:25:49 -0700 (PDT) Received: from gmail.com ([59.94.206.141]) by smtp.gmail.com with ESMTPSA id i133sm15527162pgc.0.2017.08.19.01.25.33 (version=TLS1 cipher=AES128-SHA bits=128/128); Sat, 19 Aug 2017 01:25:49 -0700 (PDT) Received: by gmail.com (sSMTP sendmail emulation); Sat, 19 Aug 2017 13:55:30 +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 09/15] phy: tegra: make device_type const Date: Sat, 19 Aug 2017 13:52:20 +0530 Message-Id: <1503130946-2854-10-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 these const as they are only stored in the type field of a device structure, which is const. Done using Coccinelle. Signed-off-by: Bhumika Goyal --- drivers/phy/tegra/xusb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/phy/tegra/xusb.c b/drivers/phy/tegra/xusb.c index 3cbcb25..bd3f1b6 100644 --- a/drivers/phy/tegra/xusb.c +++ b/drivers/phy/tegra/xusb.c @@ -155,7 +155,7 @@ static void tegra_xusb_pad_release(struct device *dev) pad->soc->ops->remove(pad); } -static struct device_type tegra_xusb_pad_type = { +static const struct device_type tegra_xusb_pad_type = { .release = tegra_xusb_pad_release, }; @@ -512,7 +512,7 @@ static void tegra_xusb_port_release(struct device *dev) { } -static struct device_type tegra_xusb_port_type = { +static const struct device_type tegra_xusb_port_type = { .release = tegra_xusb_port_release, };