From patchwork Sun Aug 6 07:41:25 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9883561 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 05A50602B6 for ; Sun, 6 Aug 2017 07:42:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E9FF32860D for ; Sun, 6 Aug 2017 07:42:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DF22128645; Sun, 6 Aug 2017 07:42:53 +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 9DB0F2860D for ; Sun, 6 Aug 2017 07:42:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751719AbdHFHmj (ORCPT ); Sun, 6 Aug 2017 03:42:39 -0400 Received: from mail-pf0-f193.google.com ([209.85.192.193]:35626 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751701AbdHFHl4 (ORCPT ); Sun, 6 Aug 2017 03:41:56 -0400 Received: by mail-pf0-f193.google.com with SMTP id j68so6018709pfc.2; Sun, 06 Aug 2017 00:41:56 -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=Npof56cKb1lQncfzJsCUN+hB1eL6xS/RtNJgFQRYSAw=; b=agDjPjxlT+vp2wnlIWFJ97GZNDD6faxDvcAlvbwuNNr5D6egzT3QUi9qxG1h+jkzEk hZphU5oHAok6fa4Bd/iQbD+ShGmotwKjSAEefrHqF9I2qTLbzJM2TkOBBS5KShD0t969 Nmeug63W7PhEp1eozed6j0WEvc3XEaTidHlIJU6IMRSUxCFZ2hWcSu120s1IQW39g9HE q72VnAb2ZFDmv+R46j2PittOPtAOip/Vm0WYgGKqkv4FLXW1U7VzOrMzwGWf6fp9wgBZ WvOlkWsnj35yeDJRsm6kCBiL6UoEN62zvKKdZjmNj8EoI8tcvHoXZuNEYfpZwxUBAaR2 muDg== 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=Npof56cKb1lQncfzJsCUN+hB1eL6xS/RtNJgFQRYSAw=; b=IXW5t/Vd1SY4ARZlsVgjAIbEuUIRvt4cifn1cR5/2Uf3LRPa0tVI+nKbWBR7bMtTUJ 0oCmQneUAHiytB8jKtFs1/fhh1uUBztQFagCGoeqIi6qLTuaB5g96D4LNouKtQrXUqFr pXjGxZznGMjvpwXEQ2UDMaYvNsVvyaiVmeh/erepXiNC20Tul0Xud0eWV9DK4rVIYrKF iHemHRU/bbB5RtaGJox4TclTrQLsd+8l4PzH/uZgVntaCWW/2IPx8bqgetfVb2YJgGOZ X9WJpofy+Y7O3TqpeFYWA4EsuoPbFaY4iiVXmSK/98DgMai4ZUTPfeKwnZ4qkQnCCZhf 3J1Q== X-Gm-Message-State: AIVw113SdFvn/lI5csf5iRDOHAyjaXocslKUerGhKLfN62o8wQGnkntI 6gGqiRyHsiUJn6ix X-Received: by 10.84.232.133 with SMTP id i5mr9505125plk.240.1502005316173; Sun, 06 Aug 2017 00:41:56 -0700 (PDT) Received: from localhost.localdomain ([103.16.68.81]) by smtp.gmail.com with ESMTPSA id v11sm9166222pfl.101.2017.08.06.00.41.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 06 Aug 2017 00:41:55 -0700 (PDT) From: Arvind Yadav To: dmitry.torokhov@gmail.com Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 6/8] Input: synaptics_usb: constify usb_device_id. Date: Sun, 6 Aug 2017 13:11:25 +0530 Message-Id: <1502005287-17705-7-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/mouse/synaptics_usb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/input/mouse/synaptics_usb.c b/drivers/input/mouse/synaptics_usb.c index 6bcc018..cb7d15d 100644 --- a/drivers/input/mouse/synaptics_usb.c +++ b/drivers/input/mouse/synaptics_usb.c @@ -525,7 +525,7 @@ static int synusb_reset_resume(struct usb_interface *intf) return synusb_resume(intf); } -static struct usb_device_id synusb_idtable[] = { +static const struct usb_device_id synusb_idtable[] = { { USB_DEVICE_SYNAPTICS(TP, SYNUSB_TOUCHPAD) }, { USB_DEVICE_SYNAPTICS(INT_TP, SYNUSB_TOUCHPAD) }, { USB_DEVICE_SYNAPTICS(CPAD,