From patchwork Mon Aug 21 17:03:55 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9913333 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 A34AE600C8 for ; Mon, 21 Aug 2017 17:06:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8E2D02861B for ; Mon, 21 Aug 2017 17:06:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 83528287A5; Mon, 21 Aug 2017 17:06:10 +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 3BD852861B for ; Mon, 21 Aug 2017 17:06:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932096AbdHURF7 (ORCPT ); Mon, 21 Aug 2017 13:05:59 -0400 Received: from mail-pg0-f68.google.com ([74.125.83.68]:35083 "EHLO mail-pg0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754077AbdHUREZ (ORCPT ); Mon, 21 Aug 2017 13:04:25 -0400 Received: by mail-pg0-f68.google.com with SMTP id m133so5257158pga.2; Mon, 21 Aug 2017 10:04:25 -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=0TG7iIXekIh8mrSh5HwywbFjBEaJHy/xucOALM5p8Ws=; b=kDELZb1qa30FmNc860tPh+SIITvB/2qiLu+miCyK+RTNLqyn1JtmrJ06VAznx7CGb/ Y8e+p9hFfpD5LNgrgB60fT+AaN5U7soP0ZNZN94arIFafT45i/zZ4oiULrszdR7zlNqL yOAXfxk0pX2yIxouqwWeot/GoraKDAO9DAhi/5WOQitj1oSczMSNdy7SUBpZQm0WGfF7 Dl/E6Z01F2+FEDq3U572Mul3oIObEZG4XwuhZ0E0+ndHUOEkx4GRSqeBFnay3QTtY5Ei 23wUr1Pmg+C3RDhk76Q8G03aVdETqJEgzRE0SAWCgYtjNAzmvt5IFSEe1VBy/UMZc8NG +PTA== 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=0TG7iIXekIh8mrSh5HwywbFjBEaJHy/xucOALM5p8Ws=; b=Ip3V92c5RTQeqaqOUo9anjuPWrVct7h8M4NqkEl2TTSn9NTrrNClt2vADbMb4YROlt Yq7aUcKjNOlI19/r9DhnuLulYkc90pAttOoIW8XgeDkfoEn8rrsVEPsJz7a75OFL2Wh1 bLaE2wXTrxA+Z8XeARzUY1pJOQYH/QH1sIFutYsd3jOheeTBQj/YFp1ULdx0jqIeWLaq fJanUCANlXgb6I929IEIcdtfixQ+f1WjaSgwPqRyejXaXu40yny/grKB9CTtaD0HmsV7 apBV5nDSDAlF+3ln0nJDxapg8UUFGrufli2I1waM4aEojTr3JaCb3ZVEK515/0tiLZsE kSWQ== X-Gm-Message-State: AHYfb5hIA2jImYp/AVTSe0jw31mtL13oqWEMR1CT/cI+XerWNs6KDriO QZEpyymNIYDpSg== X-Received: by 10.98.205.133 with SMTP id o127mr12867565pfg.241.1503335064822; Mon, 21 Aug 2017 10:04:24 -0700 (PDT) Received: from localhost.localdomain ([103.16.68.84]) by smtp.gmail.com with ESMTPSA id q76sm27480464pfi.76.2017.08.21.10.04.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 21 Aug 2017 10:04:23 -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 3/8] nfc: nxp-nci: constify i2c_device_id Date: Mon, 21 Aug 2017 22:33:55 +0530 Message-Id: <1503335040-27101-4-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/nxp-nci/i2c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/nfc/nxp-nci/i2c.c b/drivers/nfc/nxp-nci/i2c.c index 198585b..ba695e3 100644 --- a/drivers/nfc/nxp-nci/i2c.c +++ b/drivers/nfc/nxp-nci/i2c.c @@ -393,7 +393,7 @@ static int nxp_nci_i2c_remove(struct i2c_client *client) return 0; } -static struct i2c_device_id nxp_nci_i2c_id_table[] = { +static const struct i2c_device_id nxp_nci_i2c_id_table[] = { {"nxp-nci_i2c", 0}, {} };