From patchwork Sat Aug 19 08:22:17 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhumika Goyal X-Patchwork-Id: 9910369 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 01B8960386 for ; Sat, 19 Aug 2017 08:29:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E76C828DA9 for ; Sat, 19 Aug 2017 08:29:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DB7F928DAB; Sat, 19 Aug 2017 08:29:41 +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.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID 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 9826128DA9 for ; Sat, 19 Aug 2017 08:29:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751646AbdHSIYz (ORCPT ); Sat, 19 Aug 2017 04:24:55 -0400 Received: from mail-pg0-f67.google.com ([74.125.83.67]:36588 "EHLO mail-pg0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751655AbdHSIYw (ORCPT ); Sat, 19 Aug 2017 04:24:52 -0400 Received: by mail-pg0-f67.google.com with SMTP id y129so17929198pgy.3; Sat, 19 Aug 2017 01:24:51 -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=eWSFpqOr1YF9gPG3LL4PnORmREiFdb0mYWz4KOt3Mko=; b=FSe0qN0YkCfDd0LQ9yRqYP4I75idTZlAvmoqfL89lDnk3UDOaaAdh6WQMEhHBuNE5r /Qgw70vnjWTFEycfjERrpiCDCZ4uGfkQFgQcjMjAnr1FPACEinxYseT5KdW1RR4qlQpN e4wD74QMP5ZR6TNQaLgK6xo7T5PBIGAnLdr4oLqoyJUKRK6rYuo7yNsdEn5KTZmGDrnh d8O+UbIU+Lig91+qJiQju4/lrCXe2kUBxjOZYMqMShBb8+3c6tSghbnL1c+GvAHBURwk vAGCex1FpnqHLXmasjxj45iWjZnnVsRwkZ5KWMnuUQnCY0g/z8K560onA2fFDJ1aJ3Kb J9Jw== 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=eWSFpqOr1YF9gPG3LL4PnORmREiFdb0mYWz4KOt3Mko=; b=CY3DNgNgo4PbB1jqE1XUtuSYdxDg/iTjLQE+OFXZb4zgT4zliqc8OCx0xC4uEX/XDU YyPO68W6YGgmqv57jQ6hTT6+31GkJFAe+YYkgXatyM4B2XRmvMaZwxNYUtL/jw9lfyEi fx9iaXZaRJVpT4Z4EKqoVRYI0TtAbRvEzA/+KusHj1FtrimEe2l+d7J8LHuZ/iUp/7r8 nbeZpxX7Tz67WLEdolL2XTcTqKjmatrKYrosYOF9XLf6s0cMGLL/Ur3R6S3fKAYLDdXL 7QV2Fkvaww/PLfr73Px2RWmInudE6ccdPaJyN77nEH06m2/+/S2D7jPOUqPlTu+xRa1F X8OA== X-Gm-Message-State: AHYfb5j6y1CQtO33ZHNmmNTTAvHzCJlau7BEQRMw/aCjknaZaK73Q8p+ bxPlRQXGJKyuNg== X-Received: by 10.99.131.67 with SMTP id h64mr10710499pge.310.1503131091543; Sat, 19 Aug 2017 01:24:51 -0700 (PDT) Received: from gmail.com ([59.94.206.141]) by smtp.gmail.com with ESMTPSA id t12sm16237349pfg.12.2017.08.19.01.24.35 (version=TLS1 cipher=AES128-SHA bits=128/128); Sat, 19 Aug 2017 01:24:51 -0700 (PDT) Received: by gmail.com (sSMTP sendmail emulation); Sat, 19 Aug 2017 13:54: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 06/15] mtd: make device_type const Date: Sat, 19 Aug 2017 13:52:17 +0530 Message-Id: <1503130946-2854-7-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-remoteproc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-remoteproc@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/mtd/mtdcore.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/mtdcore.c b/drivers/mtd/mtdcore.c index f872a99..e7ea842 100644 --- a/drivers/mtd/mtdcore.c +++ b/drivers/mtd/mtdcore.c @@ -340,7 +340,7 @@ static ssize_t mtd_bbtblocks_show(struct device *dev, }; ATTRIBUTE_GROUPS(mtd); -static struct device_type mtd_devtype = { +static const struct device_type mtd_devtype = { .name = "mtd", .groups = mtd_groups, .release = mtd_release,