From patchwork Sun Aug 6 07:41:27 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9883553 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 6C623602B6 for ; Sun, 6 Aug 2017 07:42:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5C9582860D for ; Sun, 6 Aug 2017 07:42:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 51B2228645; Sun, 6 Aug 2017 07:42:20 +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 F1E992860D for ; Sun, 6 Aug 2017 07:42:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751857AbdHFHmD (ORCPT ); Sun, 6 Aug 2017 03:42:03 -0400 Received: from mail-pg0-f65.google.com ([74.125.83.65]:37512 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751409AbdHFHmA (ORCPT ); Sun, 6 Aug 2017 03:42:00 -0400 Received: by mail-pg0-f65.google.com with SMTP id 83so5832394pgb.4; Sun, 06 Aug 2017 00:42:00 -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=WgV/3YGLfG4UP8SIPsOexzMkl5uvXmwkp1lNClnqbSk=; b=rq5/wWvc5rrLh0Y50+30ywEGTfDxTl2y5AZKIWnl8FreYEZu2vqHU5zucATkGZPdjg OAlAwZVsIUS0TVbMsQopyn2XCbZUXU2pIgfbQBucvLz/JDelJJ/ZiDjJXzKkaKjSgS54 xBpIr1C74rJut8wImgoNPOi28UvcrV1Ne9gRJzkEeCSeEIOQ/YrJAjg246Vl6i+r2CyV 5I7QTk8qf/eFitKb5cFX+tbe7h8BQRSigLWEy0ips/f1qhNHOG7jyXJQhGmgv1EbzJ3O DRK4TUWeTP5M/nN56bkpZ/NkCmyW4uS/MJJERzZbN9ASVninUd0m3ryRBrZfZk4md6xn H26w== 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=WgV/3YGLfG4UP8SIPsOexzMkl5uvXmwkp1lNClnqbSk=; b=OQb56t6Znvo6LO2gmUv/5ISMpNfyBztEuioGwHBYZIfgVnVfNPv8NEVxlDhq08KXTN J/I9QMNneZHB2pWOifSb9CzwK681si7FxD1BVvXKmAQj4apt5RkdoivInrau8LTZ2Bgi ZAmaD4zdtrpZni06q786GUWOfkfWeFasIIxPMTrrOx/Ou+w0R5QpkdfspqjkPrApmiiL tuTYScUprJXVUHs+fPi8hrjIOerO3ZJD+h902gj3vv6Jl5jqX6WtiWYrSBZA+mWR0dbi B13MD0PhWaAVMT1IdIuH87d2lArKe0caOR713j2xz1Zoep+vVAj6i+s0iyy0aDYFrqDP dYpA== X-Gm-Message-State: AIVw112PCXqpqzkmnw0Uly0/Xu3EWgkVo56xvJqVY8T8jAjV1P8GoNjQ iR8KcUZHdxwYrg== X-Received: by 10.99.1.203 with SMTP id 194mr7481971pgb.315.1502005320429; Sun, 06 Aug 2017 00:42:00 -0700 (PDT) Received: from localhost.localdomain ([103.16.68.81]) by smtp.gmail.com with ESMTPSA id v11sm9166222pfl.101.2017.08.06.00.41.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 06 Aug 2017 00:42:00 -0700 (PDT) From: Arvind Yadav To: dmitry.torokhov@gmail.com Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 8/8] Input: kbtab: constify usb_device_id. Date: Sun, 6 Aug 2017 13:11:27 +0530 Message-Id: <1502005287-17705-9-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/tablet/kbtab.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/input/tablet/kbtab.c b/drivers/input/tablet/kbtab.c index 4d9d649..a41c3ff 100644 --- a/drivers/input/tablet/kbtab.c +++ b/drivers/input/tablet/kbtab.c @@ -88,7 +88,7 @@ static void kbtab_irq(struct urb *urb) __func__, retval); } -static struct usb_device_id kbtab_ids[] = { +static const struct usb_device_id kbtab_ids[] = { { USB_DEVICE(USB_VENDOR_ID_KBGEAR, 0x1001), .driver_info = 0 }, { } };