From patchwork Wed Aug 23 16:19:11 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9917799 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 AA6EE602CB for ; Wed, 23 Aug 2017 16:19:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9CEF4286EC for ; Wed, 23 Aug 2017 16:19:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 91A8528736; Wed, 23 Aug 2017 16:19:22 +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 37820286EC for ; Wed, 23 Aug 2017 16:19:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932157AbdHWQTV (ORCPT ); Wed, 23 Aug 2017 12:19:21 -0400 Received: from mail-pg0-f65.google.com ([74.125.83.65]:33305 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932149AbdHWQTU (ORCPT ); Wed, 23 Aug 2017 12:19:20 -0400 Received: by mail-pg0-f65.google.com with SMTP id 189so8627pgj.0; Wed, 23 Aug 2017 09:19:20 -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=9gllmNy8h2VfyZFowgZbs6vz6t8fYHv+ys/XhXTxV9s=; b=dAMh3anNWQ6bmuFUEB2KUhqcIvxOp3d7orfqgcZ4BR/GxQfYq28QBaIw53GCV1/sXb SICiuZNVqHXuaHgQ69aA6w/fSBXquBPpgq9BmAuKahAQJgnCtVArkxZLjjwp2v6fZrYg DcFP2y8625SP8CEJCPOcg9l69wtfYFR1zvHG7fVxU7iewr0oeFpqw32nA3dvRHLVq5Rb 0rb+VHW8Kai5lVevG+edTefxdyBshj4CH/w+ZfAo8dIT87+ZnotCX6L8tabsXPINxz0A Z66xj2skCbI4E0Sy7tcS52Hwq1lUZfhNY1G/nwSc6ig001Hge6WJbRys3k2/OLtqidBq 11sw== 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=9gllmNy8h2VfyZFowgZbs6vz6t8fYHv+ys/XhXTxV9s=; b=lWN6GvVmTdzA0tGIhzoFn4b4PVqI2U1DwBMDnwO73JKoYb/a47mr/0Jd3qAh+E5h53 +oCcqLehhN57z146OfdVF86dSA0Yq8bU8qtRrQ/C8uH2fGFHiZRNHum5pzbQXabOIR8O MpQnf2MDqyOydSYIXE0YCjaqahBz5jKylHwhEyIGEy+5F/QglqVkGHsL6cpxx4etEnxg acUFq1uT60I/PZFAZz1NQeJpWv97JeTGg0GMrHJ/MpQC8G2Hm4U4HeLK1KuIKtUB18Jc 57GDGeeJwYuHJyG9pDOU+0I3l0a7nGpw68b9L+Vm2iGSUdW9HJ5L8IaLaJMYpHDCVzwX dkMw== X-Gm-Message-State: AHYfb5gn7FqYmSSz351zxyAoGm7ey+tGsoFHHlfpzAIf6R775Cp8mRrW chm1cYw6SrB+Wg== X-Received: by 10.84.225.146 with SMTP id u18mr3696122plj.64.1503505159907; Wed, 23 Aug 2017 09:19:19 -0700 (PDT) Received: from localhost.localdomain ([103.16.68.93]) by smtp.gmail.com with ESMTPSA id g26sm3649206pfk.139.2017.08.23.09.19.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 23 Aug 2017 09:19:19 -0700 (PDT) From: Arvind Yadav To: linux@armlinux.org.uk, dmitry.torokhov@gmail.com Cc: linux-kernel@vger.kernel.org, linux-input@vger.kernel.org Subject: [PATCH] Input: ambakmi: constify amba_id Date: Wed, 23 Aug 2017 21:49:11 +0530 Message-Id: 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 amba_id are not supposed to change at runtime. All functions working with const amba_id. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- drivers/input/serio/ambakmi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/input/serio/ambakmi.c b/drivers/input/serio/ambakmi.c index c6606ca..ff3875c 100644 --- a/drivers/input/serio/ambakmi.c +++ b/drivers/input/serio/ambakmi.c @@ -187,7 +187,7 @@ static int __maybe_unused amba_kmi_resume(struct device *dev) static SIMPLE_DEV_PM_OPS(amba_kmi_dev_pm_ops, NULL, amba_kmi_resume); -static struct amba_id amba_kmi_idtable[] = { +static const struct amba_id amba_kmi_idtable[] = { { .id = 0x00041050, .mask = 0x000fffff,