From patchwork Sat Aug 19 08:22:25 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhumika Goyal X-Patchwork-Id: 9910317 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 4E92C60386 for ; Sat, 19 Aug 2017 08:27:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4182028D9F for ; Sat, 19 Aug 2017 08:27:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 35F6D28DA9; Sat, 19 Aug 2017 08:27:37 +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 F346328D9F for ; Sat, 19 Aug 2017 08:27:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752664AbdHSI1d (ORCPT ); Sat, 19 Aug 2017 04:27:33 -0400 Received: from mail-pg0-f68.google.com ([74.125.83.68]:34209 "EHLO mail-pg0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752013AbdHSI12 (ORCPT ); Sat, 19 Aug 2017 04:27:28 -0400 Received: by mail-pg0-f68.google.com with SMTP id i12so2627098pgr.1; Sat, 19 Aug 2017 01:27:28 -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=U0t2Bx5/OZDIWloxtRE5zw6fQ5KI9tdIqZlcMXqF/QM=; b=T1b93bg4AMiSoEKP+LoVSn0Y+Vba9KomZ8Y8adWb41PY8GnQEm07g9x/m5Xps9ZsgC V/vsEptcvgBFRL7ZaZCcIbgX3c1fsaXMy4hbn1c9QEC/52ZP3uLhNh3nbdvMBsdDwoiG yZpBJDYB05jHO9lfAEr2W6Oz5N+IfItBxaKbn3y+pepKvR/UKYDJF831Nm1+/foazwLv Lh68o8jOsRvYx6M7iqsNWgao58sEEGfOFUqUiOielgqf1VqFuZKuSKaof372j+xezZy2 0wKOKrLieL1yIS4ju2I3DEztsEvjd1Wqv39TBFh77ZFauHa4d5DEDN9uHbRsSA5ezDe7 xmWg== 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=U0t2Bx5/OZDIWloxtRE5zw6fQ5KI9tdIqZlcMXqF/QM=; b=npM2z0deCvgvJoF2dSa/tzoxHl6Ca3f7YUvo6+3sxHi+YscpE/0sr0bkREt9xe43GS 5jpF37DpnezmEUCxUKzmIk61wt+rJjY4gtGc3RIvlZnW+o2b8CJZQ2N4Ysl1BEhU6ADY xVqh7C83/W3swq8islhEr46HXOxZAlsF3PbdtkfRm+/1iw8wo8Hwgysq6KiYUmmnxnCL xDhxH2pe0WiZcCzt61rT83V9yWxdu2/0RWCgOJJAxGynQJbvf52powFzZlEeXwcUzUws kr6UEHdYmGi7khpiNCYCvgbBhhBkL04Nnt4Kc2a7yNvlx4rTQfat98M/0oTHwQBWGISN wYjw== X-Gm-Message-State: AHYfb5iFSZX1uSMbz4Yqi+KrX4oMzDcMbGZtbdvoOmhQVLfXgz0j5r2P ntgnvw2Y19Bkww== X-Received: by 10.84.194.228 with SMTP id h91mr12394399pld.46.1503131247736; Sat, 19 Aug 2017 01:27:27 -0700 (PDT) Received: from gmail.com ([59.94.206.141]) by smtp.gmail.com with ESMTPSA id v12sm2897208pgf.6.2017.08.19.01.27.11 (version=TLS1 cipher=AES128-SHA bits=128/128); Sat, 19 Aug 2017 01:27:27 -0700 (PDT) Received: by gmail.com (sSMTP sendmail emulation); Sat, 19 Aug 2017 13:57:08 +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 14/15] staging: greybus: make device_type const Date: Sat, 19 Aug 2017 13:52:25 +0530 Message-Id: <1503130946-2854-15-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 --- drivers/staging/greybus/gbphy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/greybus/gbphy.c b/drivers/staging/greybus/gbphy.c index 603de6f..80c1da8 100644 --- a/drivers/staging/greybus/gbphy.c +++ b/drivers/staging/greybus/gbphy.c @@ -66,7 +66,7 @@ static int gb_gbphy_idle(struct device *dev) gb_gbphy_idle) }; -static struct device_type greybus_gbphy_dev_type = { +static const struct device_type greybus_gbphy_dev_type = { .name = "gbphy_device", .release = gbphy_dev_release, .pm = &gb_gbphy_pm_ops,