From patchwork Wed Aug 16 05:41:42 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9903049 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 71277600CA for ; Wed, 16 Aug 2017 05:41:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6521828949 for ; Wed, 16 Aug 2017 05:41:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5795B2894F; Wed, 16 Aug 2017 05:41:56 +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 05E4D28949 for ; Wed, 16 Aug 2017 05:41:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752029AbdHPFlz (ORCPT ); Wed, 16 Aug 2017 01:41:55 -0400 Received: from mail-pg0-f68.google.com ([74.125.83.68]:33833 "EHLO mail-pg0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752028AbdHPFly (ORCPT ); Wed, 16 Aug 2017 01:41:54 -0400 Received: by mail-pg0-f68.google.com with SMTP id y192so4413804pgd.1; Tue, 15 Aug 2017 22: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; bh=t+SiEvn8UJdQop8+OHSck+YPC3fSMkl3fKxSN3LlEDg=; b=JiHp2R4Q+GJdqKFKjNJ4It0Wko0b6hC2z9afaMurntdSkVdGyr8LheAnZ25FX7ZIZq wbITMbGfOQovOBOG9F49Bol3AKgXiZY+ztfwtwqsS6B6/z9B9TD94JXieh3ODUEoPmqT 0JONjjNpyRCiHf7qx5jSlXIQai/uyeb/1oHcWmG1YPy7nmD/TAF8Tx+r8q9W0lrs9vbn x/vpeJ5s8tjcNeiCppRMNnisVjz4p+BV7222rOmbjuCtQ/MgHIBxLQ92qV0aTHBjHmXP 0Nm3+16t83hxWI48DBIu4pvyEbpbbYClMNosGP3lS2LrDZ7hvmCVAonJQo+vJWXV77fF DWcw== 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=t+SiEvn8UJdQop8+OHSck+YPC3fSMkl3fKxSN3LlEDg=; b=OLwj9vHbGmSN1iHTJ2Fq2U/oBo14y4m1USZh2+tVsM2qF9YJLsdfooW4GVjFkgz9mh aucryiYnbM9sWDecf4JWmlkasDW6ObBw+WZvpVVQhWpjS+zMxtTobZzAfHvRKNSTzRVz y/SS8YBCJgZFmB2vvVQb4zMbRwahMnB73qa7GhnTjAXiTqidKXopGMQ43b7nKKlP9c03 onjRUbWBAPWr6zUoV0IX/W8WeCtdh7uWOugcpUhtsGq+JYa4ksTCfNby9Uccrk2cAA4+ SYqYcoBa13hK6GAPk23FoNVTDxoYaeemUkzpjlNrW6qM2pzJYsd32TyvX03BxRfrBVSd zqTg== X-Gm-Message-State: AHYfb5i5ly8w6LwhCBU79zo34qfty9IkVqq58zd9tljFlZ2FUIPNOYhW 92ibEbRBi3p1CnJ5RiE= X-Received: by 10.84.138.3 with SMTP id 3mr667327plo.272.1502862113895; Tue, 15 Aug 2017 22:41:53 -0700 (PDT) Received: from localhost.localdomain ([103.16.68.146]) by smtp.gmail.com with ESMTPSA id 22sm171798pfz.100.2017.08.15.22.41.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 15 Aug 2017 22:41:53 -0700 (PDT) From: Arvind Yadav To: dmitry.torokhov@gmail.com, tglx@linutronix.de, marcos.souza.org@gmail.com Cc: linux-kernel@vger.kernel.org, linux-input@vger.kernel.org Subject: [PATCH] Input: i8042: constify pnp_device_id Date: Wed, 16 Aug 2017 11:11:42 +0530 Message-Id: <5b0366a4ca5786168a4ef8e80e7125f7afbd51c6.1502861813.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 pnp_device_id are not supposed to change at runtime. All functions working with pnp_device_id provided by work with const pnp_device_id. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- drivers/input/serio/i8042-x86ia64io.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/input/serio/i8042-x86ia64io.h b/drivers/input/serio/i8042-x86ia64io.h index f932a83..ae81e57 100644 --- a/drivers/input/serio/i8042-x86ia64io.h +++ b/drivers/input/serio/i8042-x86ia64io.h @@ -927,7 +927,7 @@ static int i8042_pnp_aux_probe(struct pnp_dev *dev, const struct pnp_device_id * return 0; } -static struct pnp_device_id pnp_kbd_devids[] = { +static const struct pnp_device_id pnp_kbd_devids[] = { { .id = "PNP0300", .driver_data = 0 }, { .id = "PNP0301", .driver_data = 0 }, { .id = "PNP0302", .driver_data = 0 }, @@ -957,7 +957,7 @@ static struct pnp_driver i8042_pnp_kbd_driver = { }, }; -static struct pnp_device_id pnp_aux_devids[] = { +static const struct pnp_device_id pnp_aux_devids[] = { { .id = "AUI0200", .driver_data = 0 }, { .id = "FJC6000", .driver_data = 0 }, { .id = "FJC6001", .driver_data = 0 },