From patchwork Thu Jul 6 16:50: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: 9828665 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 5C11460361 for ; Thu, 6 Jul 2017 16:50:28 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4DF8D286CA for ; Thu, 6 Jul 2017 16:50:28 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 428A4286E7; Thu, 6 Jul 2017 16:50: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 0A8F2286CA for ; Thu, 6 Jul 2017 16:50:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752139AbdGFQuR (ORCPT ); Thu, 6 Jul 2017 12:50:17 -0400 Received: from mail-pg0-f65.google.com ([74.125.83.65]:34915 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751813AbdGFQuP (ORCPT ); Thu, 6 Jul 2017 12:50:15 -0400 Received: by mail-pg0-f65.google.com with SMTP id d193so861006pgc.2; Thu, 06 Jul 2017 09:50:15 -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=t/DWAl1UnmRLy95hOZBUMK9+M9+r0Juc/zR3GCZm3Lw=; b=nR80PrSoLcM47h47tl1J7fakxzpvNfEEXNcZflkTELdvsTEAaIBjze2BD9gXbseO3O TYNokE98RwJ7usB/JWXbT/XhJsyD6d4T0yA2YbOc6PpH+T0242EkvCiHqp+5Tie23Vee gRucyydhMqYRrjhO5DkIRfWoXlWRQJ00DoeCLcooB09q9DKcT1eks3ZmaPujUGmRDlVw KgZTtLOjwY9i82KehLkVM+qFzNoW6M7W5SUmiHfQCzde/w5lyVBhvQ8ecMfEeFbSCFub 6JFEWWdkhVf4cc+el5IC8Ml/mLmfKQSRVvsU+W1cm4zjjta1lmXLVwoGNvqzZqxZwyWu B9Cg== 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=t/DWAl1UnmRLy95hOZBUMK9+M9+r0Juc/zR3GCZm3Lw=; b=Q9dp4WaAWakWtV0tyosBH+2Rp4PmhaPF6FYIuDItjT62GyD6IgzKNFxm4vTkCQ0XIi uRuH5ba2op0GE2XG/3pnwTqZoYXJvdn5mxmiQOKVRdWozQQU0AF/Xmb06MOYMFGR3nnC iSyOSwXkkToY7JiXPTRqkFULbC+p4ARgRowDrXP9O9zaqs0wO1+yWYhQ2CUqDhqgTCmt LIRFCa+cDSvtSnFuoWDD6iEfaZGpJUoW3TTR5N/+4CdbRmtYbmWlovp9w3tlJGm+xN65 pl+ewX7XTAX1IjUyvn6jzL4FpyOFMWXjKTvXAYLwELS353z8MFM5Gupb5LL8iTm5vcqS F+/A== X-Gm-Message-State: AIVw111AEgpIMf+0Zgnrs9TSWHWgViYMSbKj0jqcEiLpu3iERFY42z7+ XVhHskFXa6FVXg== X-Received: by 10.101.73.135 with SMTP id r7mr26760035pgs.21.1499359810099; Thu, 06 Jul 2017 09:50:10 -0700 (PDT) Received: from localhost.localdomain ([103.16.70.184]) by smtp.gmail.com with ESMTPSA id b85sm1236263pfe.94.2017.07.06.09.50.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 06 Jul 2017 09:50:09 -0700 (PDT) From: Arvind Yadav To: clement.perrochaud@effinnov.com, charles.gorand@effinnov.com, sameo@linux.intel.com Cc: linux-nfc@lists.01.org, linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] nfc: nxp-nci: constify acpi_device_id. Date: Thu, 6 Jul 2017 22:20:00 +0530 Message-Id: <50b7d8e8b297f58a2db0e8fbcc13549666174245.1499359652.git.arvind.yadav.cs@gmail.com> X-Mailer: git-send-email 2.7.4 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 acpi_device_id are not supposed to change at runtime. All functions working with acpi_device_id provided by work with const acpi_device_id. So mark the non-const structs as const. File size before: text data bss dec hex filename 2208 400 0 2608 a30 drivers/nfc/nxp-nci/i2c.o File size After adding 'const': text data bss dec hex filename 2272 336 0 2608 a30 drivers/nfc/nxp-nci/i2c.o 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 ff22d76..35d4fc5 100644 --- a/drivers/nfc/nxp-nci/i2c.c +++ b/drivers/nfc/nxp-nci/i2c.c @@ -407,7 +407,7 @@ static const struct of_device_id of_nxp_nci_i2c_match[] = { MODULE_DEVICE_TABLE(of, of_nxp_nci_i2c_match); #ifdef CONFIG_ACPI -static struct acpi_device_id acpi_id[] = { +static const struct acpi_device_id acpi_id[] = { { "NXP7471" }, { }, };