From patchwork Mon Aug 21 17:03:59 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9913323 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 DFC1E600C8 for ; Mon, 21 Aug 2017 17:05:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CB80F2879C for ; Mon, 21 Aug 2017 17:05:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C0172287A1; Mon, 21 Aug 2017 17:05: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.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 8B40F2879C for ; Mon, 21 Aug 2017 17:05:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754404AbdHURFJ (ORCPT ); Mon, 21 Aug 2017 13:05:09 -0400 Received: from mail-pg0-f68.google.com ([74.125.83.68]:38006 "EHLO mail-pg0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754289AbdHUREi (ORCPT ); Mon, 21 Aug 2017 13:04:38 -0400 Received: by mail-pg0-f68.google.com with SMTP id t3so4237904pgt.5; Mon, 21 Aug 2017 10:04:38 -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=6YE4E4/WNzrUDkVRlpJAgCwWJ91vluau6ILi8UiuPKQ=; b=T7Wf1uF0O8eyIdvpor3icuBLcRXSmkamQbfha7nbl7fS1hB4Kx4/rMcbC5Sq3cv3VT DwsQqCKMegeahFcAtA74pq/SloI7nBeKNHL6916xE4iP1ahAu7JMNkdwcvAUC2UCfpeR aP9ttyvqB1TJ0NZix+wG/1sWxMFGSzyezJOUVjQ47fXS7+VBwEBnbXchaRKp/ZUIp8kS NSiGWSUBDq7U66XfpC59SSgcIHpA0Fk83lpuT9WgHru7JxeqWHVM1lb0+rR9kyTSb2/x CWp1Wg9HeXJyVGYJUdK0sDhqBexqAZmOh0SCuK+I78qpCViLIALGlfjFFV6uzZgPGA98 0F1w== 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=6YE4E4/WNzrUDkVRlpJAgCwWJ91vluau6ILi8UiuPKQ=; b=MHaN4hNMTEVBz4n4iUVXiVKkIUI08JYswJ0XRgZ4t+UvmHZ0r7DmLXGjZ+oVVOwQKY Tc85Sl3As7HF716qsOVqefKNlSg2+0h/Eg3cvrWTxf3W9nzLRs49FMcTS2vvnaFjCMOZ e0hYF7u5oJmXQVEJRQph2Z0H6SDWqOdrW7e+tWFGYWi4xPvblglfYj/qO+jagEr4sONb WdNnYV7ojUW3NrMnUhOmsQTMZ5mWzeaFoL45uHVVW/04zYNuCjCFA3JxwJ1cWKTyNAfi AX7wxx0wei8eo5EMQsPJWq6d37l6tqRmT+ppf7m1uCf3DucgXTaafPazkC6OxT3j+KlJ UrFg== X-Gm-Message-State: AHYfb5hH0mIocVi5YEc7FDqNHgUjGUdW7z2074GlX9wfugAdOvBXBpqU 7MloLH/zp5IuTQ== X-Received: by 10.98.16.14 with SMTP id y14mr18119903pfi.64.1503335078318; Mon, 21 Aug 2017 10:04:38 -0700 (PDT) Received: from localhost.localdomain ([103.16.68.84]) by smtp.gmail.com with ESMTPSA id q76sm27480464pfi.76.2017.08.21.10.04.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 21 Aug 2017 10:04:37 -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 7/8] nfc: st-nci: constify i2c_device_id Date: Mon, 21 Aug 2017 22:33:59 +0530 Message-Id: <1503335040-27101-8-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/st-nci/i2c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/nfc/st-nci/i2c.c b/drivers/nfc/st-nci/i2c.c index 515f08d..f9525ef 100644 --- a/drivers/nfc/st-nci/i2c.c +++ b/drivers/nfc/st-nci/i2c.c @@ -279,7 +279,7 @@ static int st_nci_i2c_remove(struct i2c_client *client) return 0; } -static struct i2c_device_id st_nci_i2c_id_table[] = { +static const struct i2c_device_id st_nci_i2c_id_table[] = { {ST_NCI_DRIVER_NAME, 0}, {} };