From patchwork Sat Aug 19 08:22:15 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhumika Goyal X-Patchwork-Id: 9910219 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 CB2AA60386 for ; Sat, 19 Aug 2017 08:24:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BDC9D28C9D for ; Sat, 19 Aug 2017 08:24:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B1E2C28CA8; Sat, 19 Aug 2017 08:24:21 +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=-7.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_HI 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 7BC3528C9D for ; Sat, 19 Aug 2017 08:24:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752231AbdHSIYS (ORCPT ); Sat, 19 Aug 2017 04:24:18 -0400 Received: from mail-pf0-f196.google.com ([209.85.192.196]:38049 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751049AbdHSIYN (ORCPT ); Sat, 19 Aug 2017 04:24:13 -0400 Received: by mail-pf0-f196.google.com with SMTP id h75so2596810pfh.5; Sat, 19 Aug 2017 01:24:12 -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=VuCLgsCnGFBmrdHzR3SAkD1kQkjo5vb9UEJVYkmle/s=; b=t2vBZniqKHqVWeKhv3iPqMuoclwzJwc6nh/pWA5t/4OyrgqYgjOJaxrFCmQs8OjEhn 0ROsw6cFO8xSbamCYFVsiTGas9YI/dR5musOSSnTU5+hb4PA4HyUp+xmoIKkgQDH0n/1 BujOMVKXe2WPlrboGhYFa02rCzzhfsj1IGinEP0WaVz38kknhqZ47hcDUJufvpsqLHPD MG5/irXdhbprOrKzbdzB5hGcWZP9I6dM96MHqNjQ0PXPXLoF71ILzS4IEWmKsrBYnt4q Bwk/5F3/8F1pl3w8dXovlKKqBA/UoO/YsEKMCDtHg1uZciAFVzR5Nrco4wvs+qsX+Pn7 Z6sw== 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=VuCLgsCnGFBmrdHzR3SAkD1kQkjo5vb9UEJVYkmle/s=; b=gSyndikirD5U2fa30gIUH9IQY+WidtOlfEUP3wSVBOrT3GqVW6gTPhBojzqXmRcgN6 vX9Pw+x9s9u7HH2nktTHju2w7ihWEaTpnPXwQZfefUYHkhfYeosT43DdITx14gq02RKS kz1ncWdiNWWkuWzR9ik67Zv3dr5pup0kmXxvtXgoh0JakImoBymoDUD2OTw+Usre4QZ0 USJuM7cWaevxJ2gH6A+E+vFc+r5CDm7ofOgES1FX2jCgREr/jxkkIvjc8Mnc/YC/HBc8 2sudrEPuvELnNigzBGePkrjCF7m6afIm0SN5Y2GvP7n87curBhPlo7ATg6Iepg609Cfj M5IA== X-Gm-Message-State: AHYfb5irUHNsdiT6jum3mWN2CnlOrZJfDAsWEH+uHl3+ptIP+QHnpo/6 aWG7gcpulKnZJQ== X-Received: by 10.98.248.78 with SMTP id c14mr5110110pfm.324.1503131052430; Sat, 19 Aug 2017 01:24:12 -0700 (PDT) Received: from gmail.com ([59.94.206.141]) by smtp.gmail.com with ESMTPSA id q88sm16368800pfk.8.2017.08.19.01.23.56 (version=TLS1 cipher=AES128-SHA bits=128/128); Sat, 19 Aug 2017 01:24:12 -0700 (PDT) Received: by gmail.com (sSMTP sendmail emulation); Sat, 19 Aug 2017 13:53:53 +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 04/15] [media] rc: make device_type const Date: Sat, 19 Aug 2017 13:52:15 +0530 Message-Id: <1503130946-2854-5-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/media/rc/rc-main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/rc/rc-main.c b/drivers/media/rc/rc-main.c index a9eba00..ea3da3e 100644 --- a/drivers/media/rc/rc-main.c +++ b/drivers/media/rc/rc-main.c @@ -1532,7 +1532,7 @@ static RC_FILTER_ATTR(wakeup_filter_mask, S_IRUGO|S_IWUSR, .attrs = rc_dev_wakeup_filter_attrs, }; -static struct device_type rc_dev_type = { +static const struct device_type rc_dev_type = { .release = rc_dev_release, .uevent = rc_dev_uevent, };