From patchwork Tue Aug 8 16:54:12 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9888829 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 6C2AA601EB for ; Tue, 8 Aug 2017 16:54:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5E0E828987 for ; Tue, 8 Aug 2017 16:54:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5303328996; Tue, 8 Aug 2017 16:54:24 +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 E9FDA28987 for ; Tue, 8 Aug 2017 16:54:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752059AbdHHQyX (ORCPT ); Tue, 8 Aug 2017 12:54:23 -0400 Received: from mail-pg0-f66.google.com ([74.125.83.66]:35269 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752092AbdHHQyW (ORCPT ); Tue, 8 Aug 2017 12:54:22 -0400 Received: by mail-pg0-f66.google.com with SMTP id l64so3524905pge.2; Tue, 08 Aug 2017 09:54:22 -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; bh=vc70QWzHpvEA/BIb666Dr21Ve5VZ/HmT+epGd07jrjc=; b=COOy/7Z7/h3ugH9LiP4GCD84INMXxUTRa6HEbPU6pS1TyfJNK6d4qi+pP5JTDT1s9o P+c2oEua3eMiJ7Q2o/gZTz5KkY3hL3pNqRO0GIiOBoDIgGwb0J5FOG5oxrEMO9JgGOOb 60nuEYxlrGwzgbCA1YvKTcXq7EA/RmIgGInVg7+HaheQUAzq5l0VNxEoVvGuPQ5inju+ R8DGmQZOyUyDDbcCr6Ss1n/WWNDidSRN9M5AAmPfSbEjK+aeH1MZGajhNz5R4mTncMYi 7UxOMeSG7BfzHMeEG06IhG2a5tTkfKCRdOmcdxwPXlhOQH0JZbrlrh8ekd8u0wKRsbR/ Y9mA== 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; bh=vc70QWzHpvEA/BIb666Dr21Ve5VZ/HmT+epGd07jrjc=; b=UmRj81oIRVJ0EMeUgfg7+RMoDIv/edR39sV7AXLogFki1uO4jGQoH7zUf6C38wWPCG ylGCeR27ihsVEyEqUw8jblyQ9qrL7HLDyQsMRNeN61JmFT06MUGb3HSxcalQcDjQSGyi 7R4Ba8p9UzZGLR/h53MHWlzEZujn4QBSVm18EXhHf1nt2kWPJ8IrbUZazMtgvaGxFqcq AfUTcl6Sg/d+RkrMw4B2vYWg/mvwklSZTMmDLA+TJOS/eN8SMnfeklns2JAjV1WR5koy t5Giq2ggLaNhkuOY+vJPrv93sIgKDwm2nOyh7m4gbw328G2nTlPjrGghdigz2Y5taUQ3 wX4Q== X-Gm-Message-State: AHYfb5g7HpgpDaHYhIG0M2c9F9lqU0lQfXZf67xig8QK17Q/9zXn9tbV zqtkot3YsqVHcfE8wrI= X-Received: by 10.84.234.15 with SMTP id m15mr5564944plk.247.1502211261878; Tue, 08 Aug 2017 09:54:21 -0700 (PDT) Received: from localhost.localdomain ([103.16.68.66]) by smtp.gmail.com with ESMTPSA id g22sm4986358pgn.65.2017.08.08.09.54.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 08 Aug 2017 09:54:21 -0700 (PDT) From: Arvind Yadav To: syrjala@sci.fi, dmitry.torokhov@gmail.com Cc: linux-kernel@vger.kernel.org, linux-input@vger.kernel.org Subject: [PATCH] Input: ati_remote2: constify usb_device_id Date: Tue, 8 Aug 2017 22:24:12 +0530 Message-Id: <8d2f77c37ab938f3b4ed124b02aff2021714e591.1502211151.git.arvind.yadav.cs@gmail.com> X-Mailer: git-send-email 2.7.4 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/ati_remote2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/input/misc/ati_remote2.c b/drivers/input/misc/ati_remote2.c index 1c5914c..ebf4448 100644 --- a/drivers/input/misc/ati_remote2.c +++ b/drivers/input/misc/ati_remote2.c @@ -110,7 +110,7 @@ static const struct kernel_param_ops param_ops_mode_mask = { module_param(mode_mask, mode_mask, 0644); MODULE_PARM_DESC(mode_mask, "Bitmask of modes to accept <4:PC><3:AUX4><2:AUX3><1:AUX2><0:AUX1>"); -static struct usb_device_id ati_remote2_id_table[] = { +static const struct usb_device_id ati_remote2_id_table[] = { { USB_DEVICE(0x0471, 0x0602) }, /* ATI Remote Wonder II */ { } };