From patchwork Sun Aug 6 07:41:22 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9883563 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 EAE98602B6 for ; Sun, 6 Aug 2017 07:43:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DA9A52860D for ; Sun, 6 Aug 2017 07:43:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CDF0928645; Sun, 6 Aug 2017 07:43:02 +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 87B3C2860D for ; Sun, 6 Aug 2017 07:43:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751513AbdHFHlx (ORCPT ); Sun, 6 Aug 2017 03:41:53 -0400 Received: from mail-pg0-f66.google.com ([74.125.83.66]:35550 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751409AbdHFHlu (ORCPT ); Sun, 6 Aug 2017 03:41:50 -0400 Received: by mail-pg0-f66.google.com with SMTP id l64so5828979pge.2; Sun, 06 Aug 2017 00:41: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=/1cgThUaocwI4Lywt8u0KYvhvz5TPmsf0b6tQuLIzGs=; b=nkGNW+Ap7EG7rmzKosrVOapLnd7Wt8Bm4IA1uOjf2akIxn1UmYPz+qjLbthjqyrjEz jgxmpiV/C3rQCX2CNhNT670EdP1IfmK4JzzIRsxGcS8EC3cwjk63KL6WbXpGgL/GTFS/ UyymYGJZdSYlt8oeGEEzZ3Z0UEJkqadY3NBCwy6vW3IvszhEYSHcTDHHY4/sptUHWo5E MYKVHhZO54n5BSOml/qm55lQqSUKC7roitQPjC+EtTJlqx7TGLtlAnKRvh3dGQw7ZK5i p5kISQQF1jm++YXx2SIqXLkDiKu668bapWDk+mcqyC1z9M0Kx72yLfHDs3R91VBHNvQd K5sQ== 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=/1cgThUaocwI4Lywt8u0KYvhvz5TPmsf0b6tQuLIzGs=; b=I4R2TGBzhT5I11544fgm+XYYMK8RWbMd6aWKQn36/5aIHLLAyclJ/Nf6F/JoV33jM1 lzxSBoxoxLS5ob3bXK25QImk4eTOJalICJibf1tdyNCah6e+PcUVbeXhLuvVLLI8uKQs m42+AKMdVc5WdTteVfbIuORbyy/aAB9yQrszoILBOptZa5g9KIxyZVJ0KfWttgC9RmIq Jw1YR+TkuHoqrk00o5p0JQ8oT1arSecYwyxp13XYjKj42sqjJRuagnzjabiBEt1gnmDl OY7WKy9+4HMDxXO/exxTfsNlKpFbtlswzevchPSJGBAk1A+9djaR8dRU59FRasNdcjHx weAA== X-Gm-Message-State: AIVw113qjuFHOyKysLquDrNwCIK07SVa02JtLawPVy9m7tfFH2u0bONt PkX1ZLOmqOR+Y3jy X-Received: by 10.84.130.42 with SMTP id 39mr9554104plc.60.1502005310264; Sun, 06 Aug 2017 00:41:50 -0700 (PDT) Received: from localhost.localdomain ([103.16.68.81]) by smtp.gmail.com with ESMTPSA id v11sm9166222pfl.101.2017.08.06.00.41.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 06 Aug 2017 00:41:49 -0700 (PDT) From: Arvind Yadav To: dmitry.torokhov@gmail.com Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/8] Input: keyspan_remote: constify usb_device_id. Date: Sun, 6 Aug 2017 13:11:22 +0530 Message-Id: <1502005287-17705-4-git-send-email-arvind.yadav.cs@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1502005287-17705-1-git-send-email-arvind.yadav.cs@gmail.com> References: <1502005287-17705-1-git-send-email-arvind.yadav.cs@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 usb_device_id are not supposed to change at runtime. All functions working with usb_device_id provided by work with const usb_device_id. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- drivers/input/misc/keyspan_remote.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/input/misc/keyspan_remote.c b/drivers/input/misc/keyspan_remote.c index a3fe4a9..77c47d6 100644 --- a/drivers/input/misc/keyspan_remote.c +++ b/drivers/input/misc/keyspan_remote.c @@ -85,7 +85,7 @@ static const unsigned short keyspan_key_table[] = { }; /* table of devices that work with this driver */ -static struct usb_device_id keyspan_table[] = { +static const struct usb_device_id keyspan_table[] = { { USB_DEVICE(USB_KEYSPAN_VENDOR_ID, USB_KEYSPAN_PRODUCT_UIA11) }, { } /* Terminating entry */ };