From patchwork Mon Aug 21 11:43:09 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhumika Goyal X-Patchwork-Id: 9912221 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 EF6FE602A0 for ; Mon, 21 Aug 2017 11:44:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D7C5D286C4 for ; Mon, 21 Aug 2017 11:44:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CC511286DA; Mon, 21 Aug 2017 11:44:30 +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.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, 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 74EBF286C4 for ; Mon, 21 Aug 2017 11:44:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753694AbdHULoQ (ORCPT ); Mon, 21 Aug 2017 07:44:16 -0400 Received: from mail-pg0-f65.google.com ([74.125.83.65]:32944 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753675AbdHULoN (ORCPT ); Mon, 21 Aug 2017 07:44:13 -0400 Received: by mail-pg0-f65.google.com with SMTP id n4so8576179pgn.0; Mon, 21 Aug 2017 04:44:13 -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=9ZyljxBBmxxhnhruFGOB6hT7JlrZjHRV2dBXEiOzjew=; b=YHuv3TmbF690S4zVatKzVKm1JX3EegFj7qfAotu8FWnxapAGnXOTsAg+ROeSJT4rmo 4LH9Wqao8hVle/xslq4NFx1c1Rikyb8eqtxfmVWohr3PzByB2bXaycpctkoiACANgwYQ XPIlItOkF/Ygrzfjs5DTA8LMXMKFiLh9RtYniNZ1qWIsfA4Awmrv5bCvZT6cl1bQZBRD H52aKEElw2G5KgorO1I3XLR9UbeiKcfsSKbGWkG1DZC8xLanIPOOr5O1L/rb1MtQMOkr cdNblOYCJEitdJC/naAG6b64gBeWAyXf2TEt/jtqJmHu7zHE0MfPgZbfklGK9D6li8Ih NDVg== 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=9ZyljxBBmxxhnhruFGOB6hT7JlrZjHRV2dBXEiOzjew=; b=LLPKEgJAKK57SeUKslsc0CdQDvp7obul7ugF75v/36ZNGnQin4IdIEAKCQcO/JStwd 0d6HzQ2doLumR6EQyCiNaoVprLWhzCXLtEviBIB9y1IsM04AmMcSIOxxbhkzdMi9JywV RYdBfXFbUwDtki3x4l3UisEzjeiMt21ycuYD1NSmR8ZowdY+7DYKtX8WH0VfVTMrsQEc uSgxpYIH33h7JB1ASLy+5B/sAlfOVPVnZQBoRb69AuFaDxFbDMu3V2o/q7azWvvRUTy9 uSlyLC28n8y1cqKm2uda5MoTV9fcd2CAHpSBk7ENIT+fkHYtUaqrVQLoBSmRTzFM5IXD 5n3Q== X-Gm-Message-State: AHYfb5gpGqRc4HNW/ylB0773pJme2/LWHVYgCgndKUNoZEBiL2B6UqAz tTG8ibDk8WaFXw== X-Received: by 10.84.132.129 with SMTP id e1mr18790815ple.316.1503315852591; Mon, 21 Aug 2017 04:44:12 -0700 (PDT) Received: from gmail.com ([117.196.124.142]) by smtp.gmail.com with ESMTPSA id q88sm25458453pfk.8.2017.08.21.04.44.04 (version=TLS1 cipher=AES128-SHA bits=128/128); Mon, 21 Aug 2017 04:44:12 -0700 (PDT) Received: by gmail.com (sSMTP sendmail emulation); Mon, 21 Aug 2017 17:14:01 +0530 From: Bhumika Goyal To: julia.lawall@lip6.fr, rjw@rjwysocki.net, lenb@kernel.org, jbacik@fb.com, jikos@kernel.org, benjamin.tissoires@redhat.com, manish.chopra@cavium.com, rahul.verma@cavium.com, Dept-GELinuxNICDev@cavium.com, harish.patil@cavium.com, cascardo@holoscopio.com, don@syst.com.br, dvhart@infradead.org, andy@infradead.org, sre@kernel.org, linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-block@vger.kernel.org, nbd-general@lists.sourceforge.net, linux-input@vger.kernel.org, netdev@vger.kernel.org, platform-driver-x86@vger.kernel.org, linux-pm@vger.kernel.org Cc: Bhumika Goyal Subject: [PATCH 3/6] hid: make device_attribute const Date: Mon, 21 Aug 2017 17:13:09 +0530 Message-Id: <1503315792-14837-4-git-send-email-bhumirks@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1503315792-14837-1-git-send-email-bhumirks@gmail.com> References: <1503315792-14837-1-git-send-email-bhumirks@gmail.com> Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Make this const as it is only passed as an argument to the function device_create_file and device_remove_file and the corresponding arguments are of type const. Done using Coccinelle Signed-off-by: Bhumika Goyal --- drivers/hid/hid-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hid/hid-core.c b/drivers/hid/hid-core.c index 9bc9116..24e929c 100644 --- a/drivers/hid/hid-core.c +++ b/drivers/hid/hid-core.c @@ -1662,7 +1662,7 @@ static bool hid_hiddev(struct hid_device *hdev) .size = HID_MAX_DESCRIPTOR_SIZE, }; -static struct device_attribute dev_attr_country = { +static const struct device_attribute dev_attr_country = { .attr = { .name = "country", .mode = 0444 }, .show = show_country, };