From patchwork Sun Aug 6 07:41:24 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9883547 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 872FE603F2 for ; Sun, 6 Aug 2017 07:42:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7682A2860D for ; Sun, 6 Aug 2017 07:42:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 646A32863F; Sun, 6 Aug 2017 07:42: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 1B1CE2863F for ; Sun, 6 Aug 2017 07:42:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751748AbdHFHl6 (ORCPT ); Sun, 6 Aug 2017 03:41:58 -0400 Received: from mail-pg0-f65.google.com ([74.125.83.65]:32835 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751409AbdHFHly (ORCPT ); Sun, 6 Aug 2017 03:41:54 -0400 Received: by mail-pg0-f65.google.com with SMTP id u185so5863147pgb.0; Sun, 06 Aug 2017 00:41:54 -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=cFhgexKvvYOel8sRrKmfeh2iNVRGCAtwUtsvoccCMik=; b=YQTvIKnjX1W+OHfmLBtrMhOBKkOXX9GOeQdG7g0dr/k6ywSWBvnCytxzR3Y43XScN6 gaVwBbTd7zVDg4vGStiHm7npZpENhA1LQ/9ntMDxlleoGsHq707lzL9glmltcHLFgO8c Pt8TrYQNKXXC50t/KJRzi04wUKR+95u8ue0GloVkezbbm7sUrAoCwxDjIWL2RlMcXCW6 f6CciwrMKSPCreMwH3VEAwsxOU0IW+ecT+B24NS3hqHg61UfLhZ2qXnQaGukMGNMXrc8 E2CMHqN5speYn/dxZkXnokrltniIZY4+c7ykBkUticb3gVFRkMLkPrFaFEnIJqUXlxKv RAYA== 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=cFhgexKvvYOel8sRrKmfeh2iNVRGCAtwUtsvoccCMik=; b=RTyGN8SVBZa7je/U7qBJCpIL89WDpHfuPF8i1+GixZC70gSQZ3nXQ9VCiZBrRXekVQ YOZCrMOZn+W6y0NBPlkH3YEvJtYNav2RSo7B++3Sb30CLvB8w7lOtNEAuRPBmvekz/SS t1lAQBANF7u8nz37tW9OToY/2+uioOX0MWhMShUyeEj91tCw82p36Gc73pT8MqwNPBBg n0cYHrY9Llx9erzuPsfAYSPfi12GTWN+1EjSVX6VErogg0KMa42xS4wjKfnZhOa26Tv+ SPI8g58eXybq/RQAFWk15HKgXDEKmnSOQxghygwp9lll1OmgTEl66V/wms96cotGL4bl EmTQ== X-Gm-Message-State: AIVw112/anilRBqxz6NICWr1ZPrE3cOahb3Sxj2lX7Siu99zAynZ7F5F 6haoI14pbAxuLkVb X-Received: by 10.84.236.5 with SMTP id q5mr9319996plk.233.1502005314384; Sun, 06 Aug 2017 00:41:54 -0700 (PDT) Received: from localhost.localdomain ([103.16.68.81]) by smtp.gmail.com with ESMTPSA id v11sm9166222pfl.101.2017.08.06.00.41.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 06 Aug 2017 00:41:54 -0700 (PDT) From: Arvind Yadav To: dmitry.torokhov@gmail.com Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 5/8] Input: appletouch: constify usb_device_id. Date: Sun, 6 Aug 2017 13:11:24 +0530 Message-Id: <1502005287-17705-6-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/appletouch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/input/mouse/appletouch.c b/drivers/input/mouse/appletouch.c index ef234c9..81a695d 100644 --- a/drivers/input/mouse/appletouch.c +++ b/drivers/input/mouse/appletouch.c @@ -125,7 +125,7 @@ static const struct atp_info geyser4_info = { * According to Info.plist Geyser IV is the same as Geyser III.) */ -static struct usb_device_id atp_table[] = { +static const struct usb_device_id atp_table[] = { /* PowerBooks Feb 2005, iBooks G4 */ ATP_DEVICE(0x020e, fountain_info), /* FOUNTAIN ANSI */ ATP_DEVICE(0x020f, fountain_info), /* FOUNTAIN ISO */