From patchwork Mon Aug 21 17:04:00 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9913317 X-Patchwork-Delegate: sameo@linux.intel.com 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 06855600C8 for ; Mon, 21 Aug 2017 17:04:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E3F0D2879C for ; Mon, 21 Aug 2017 17:04:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D49FE287A1; Mon, 21 Aug 2017 17:04:55 +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.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM autolearn=unavailable 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 9A6842879C for ; Mon, 21 Aug 2017 17:04:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754345AbdHUREo (ORCPT ); Mon, 21 Aug 2017 13:04:44 -0400 Received: from mail-pg0-f65.google.com ([74.125.83.65]:38023 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754325AbdHUREm (ORCPT ); Mon, 21 Aug 2017 13:04:42 -0400 Received: by mail-pg0-f65.google.com with SMTP id t3so4238040pgt.5; Mon, 21 Aug 2017 10:04:41 -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=5mRt2bfl9mFanoMlHGgFiu81QkbtdrupvuIexiI4Vqw=; b=bWLkeXURmFtusAfuhWBEG5MIB5lPo5BXI0ZdAlD/MnyxxcbJYsQ+1fN4fkW8SLZ5nH JRqwsF3J0jaSpL6OtM8JgRGqkgF6LvQ0wyCKxcNJNH6LjJhjR08fc80Ih/RyxlLrIvZP oTnWhkVNf8ihtmPvAf4CwDCFCUn/pufjbWZDPOx5ZIloqo7z2EqDnW2pQELZIcPveYvU DcNKGayo1hPKtTf68mNIOG1jGKJOb0LlaXtJVFCKGZINz10PjaKawYHMBV0LjZBu2X5A ju2fGScxCV0UD1v2jHkLZq1RIvTZ+RwHsYbMgmYK+bpBDsxAG9QUL0VrL0ZjoAAKjZyy yrHw== 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=5mRt2bfl9mFanoMlHGgFiu81QkbtdrupvuIexiI4Vqw=; b=dlDf+Sw83CpUPLldcFZuMib2x2soFj9oMN50gdH6cZh5Ks7HjdfF4eAWNX3GoDh7kM Iq2yaF/4VFnJ+VFbsDD1PGQ4USZO0qHCyRchDViuF7q7kQP96bn9fvs8HWyU8PQw3aYS 6/Zc1iRURl4lpUmAfMCey01bxu88RtEMn3Gqa7yQsGrniBFWYnZ1PA+M7Jel1P2m9Eoi SGiAsGPpMZdENXe1pMjyoVxEM5Bajmdhk+Wr+pKhV3tehgCiqih4jRp3FvHDAQZRIzf7 vSCZ2FvgcoRhh4Li97Gwj+g7W8+P2Sx7KscyHK4vcH53X/uS28vRZvdM5sbZEVKtaRn/ IrTA== X-Gm-Message-State: AHYfb5gSxtFnMVVyQgUSM7ygOho3Obl1AiV3I3jGXmGT3Qg/3y0hD6c1 +p5aSQDCBB3Y6Q== X-Received: by 10.99.109.77 with SMTP id i74mr6597460pgc.372.1503335081570; Mon, 21 Aug 2017 10:04:41 -0700 (PDT) Received: from localhost.localdomain ([103.16.68.84]) by smtp.gmail.com with ESMTPSA id q76sm27480464pfi.76.2017.08.21.10.04.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 21 Aug 2017 10:04:40 -0700 (PDT) From: Arvind Yadav To: sameo@linux.intel.com, clement.perrochaud@effinnov.com, charles.gorand@effinnov.com, r.baldyga@samsung.com, k.opasiak@samsung.com, davem@davemloft.net Cc: linux-kernel@vger.kernel.org, linux-wireless@vger.kernel.org Subject: [PATCH 8/8] nfc: st21nfca: constify i2c_device_id Date: Mon, 21 Aug 2017 22:34:00 +0530 Message-Id: <1503335040-27101-9-git-send-email-arvind.yadav.cs@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1503335040-27101-1-git-send-email-arvind.yadav.cs@gmail.com> References: <1503335040-27101-1-git-send-email-arvind.yadav.cs@gmail.com> Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP i2c_device_id are not supposed to change at runtime. All functions working with i2c_device_id provided by work with const i2c_device_id. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- drivers/nfc/st21nfca/i2c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/nfc/st21nfca/i2c.c b/drivers/nfc/st21nfca/i2c.c index cd1f7bf..1b34709 100644 --- a/drivers/nfc/st21nfca/i2c.c +++ b/drivers/nfc/st21nfca/i2c.c @@ -589,7 +589,7 @@ static int st21nfca_hci_i2c_remove(struct i2c_client *client) return 0; } -static struct i2c_device_id st21nfca_hci_i2c_id_table[] = { +static const struct i2c_device_id st21nfca_hci_i2c_id_table[] = { {ST21NFCA_HCI_DRIVER_NAME, 0}, {} };