From patchwork Mon Aug 21 17:03:54 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9913337 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 C830F600C8 for ; Mon, 21 Aug 2017 17:06:28 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B34D12861B for ; Mon, 21 Aug 2017 17:06:28 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A5DFD287A5; Mon, 21 Aug 2017 17:06:28 +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 71E102861B for ; Mon, 21 Aug 2017 17:06:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754080AbdHURGQ (ORCPT ); Mon, 21 Aug 2017 13:06:16 -0400 Received: from mail-pg0-f68.google.com ([74.125.83.68]:37903 "EHLO mail-pg0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754167AbdHUREV (ORCPT ); Mon, 21 Aug 2017 13:04:21 -0400 Received: by mail-pg0-f68.google.com with SMTP id t3so4237062pgt.5; Mon, 21 Aug 2017 10:04:21 -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=kQ/1V591nbXkjz3+z2IZtYu6anAWDvgwWTikFUgPe1g=; b=qEBI51FZkZlNCF1u0FxHFej3YLJG2hDLFhfQgQ77GW7pyTWrULWzLz53pRTGyQL0hD gU4sRBhnCedrAZV06GPdmjJEEX1KbCkSm/b2BIsBJv5/58Drto8tU8Li8+AnO53Cpne5 WP16IW6aZzsqaVdjKf01ssQoUGT9it3l/gqg70mRuE5+p7kBoSA19KEKfJr7YbMKicXQ WEv7UcT+AkrwhDifdmsvS3BJCDkl5CsHKx+BzHG3OGTLXlNGdPfL6Cro/LHky0eHGDpR 7MEZfDYy/AMjKhHpwCrQ15Z5O+0slWvhDqfKgORJtIHHeTvulE4ZI3E2UaZ1sd5jnkj/ pdTg== 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=kQ/1V591nbXkjz3+z2IZtYu6anAWDvgwWTikFUgPe1g=; b=dbS8hUxU4K0VOEarUo9jY5J8L9s2Qh4gM58DwHhaVNt2wgpXdxVTTyIPXVNHhbFDri rR/KIhuxoj7CiX74FvK11UjSkXLE8o7VICWeXFEFY6lBBT0RkRl8OokUGU1FKw56vTwr QWW3Dhr5t+e4v4c+A6PnOStpG1m15Mq83GfOdHGNMs6goLOdAYwPajBEhhaJSlv8PAeJ xcI044+iO1cg9ip/mQz0+WCEm5z6HjgUA0WwH4qoX598Kb1Z0C/V24KJVZM6hc4qkE67 U+CuQApx9CjLa/J1QaV+JIJieqZ9SU5h9G7hxGqc8bUsrEsy8aH+RN6JInwS4i8NCXdK rG3A== X-Gm-Message-State: AHYfb5hD4now1X+HxVmi+slnWDahIianbSydQOLWTXRVv/09zVko+Oen IJ1urRB0R21+gA== X-Received: by 10.84.129.132 with SMTP id b4mr19685581plb.294.1503335061048; Mon, 21 Aug 2017 10:04:21 -0700 (PDT) Received: from localhost.localdomain ([103.16.68.84]) by smtp.gmail.com with ESMTPSA id q76sm27480464pfi.76.2017.08.21.10.04.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 21 Aug 2017 10:04:20 -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 2/8] nfc: nfcmrvl: constify i2c_device_id Date: Mon, 21 Aug 2017 22:33:54 +0530 Message-Id: <1503335040-27101-3-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/nfcmrvl/i2c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/nfc/nfcmrvl/i2c.c b/drivers/nfc/nfcmrvl/i2c.c index ffec103..0f22379 100644 --- a/drivers/nfc/nfcmrvl/i2c.c +++ b/drivers/nfc/nfcmrvl/i2c.c @@ -266,7 +266,7 @@ static const struct of_device_id of_nfcmrvl_i2c_match[] = { }; MODULE_DEVICE_TABLE(of, of_nfcmrvl_i2c_match); -static struct i2c_device_id nfcmrvl_i2c_id_table[] = { +static const struct i2c_device_id nfcmrvl_i2c_id_table[] = { { "nfcmrvl_i2c", 0 }, {} };