[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20190729133514.13164-9-andriy.shevchenko@linux.intel.com>
Date: Mon, 29 Jul 2019 16:35:08 +0300
From: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
To: Clément Perrochaud
<clement.perrochaud@...innov.com>,
Charles Gorand <charles.gorand@...innov.com>,
netdev@...r.kernel.org, "David S. Miller" <davem@...emloft.net>,
Sedat Dilek <sedat.dilek@...dativ.de>
Cc: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>,
Sedat Dilek <sedat.dilek@...il.com>
Subject: [PATCH v4 08/14] NFC: nxp-nci: Constify acpi_device_id
The content of acpi_device_id is not supposed to change at runtime.
All functions working with acpi_device_id provided by <linux/acpi.h>
work with const acpi_device_id. So mark the non-const structs as const.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
Tested-by: Sedat Dilek <sedat.dilek@...il.com>
---
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 bec9b1ea78e2..4e71962dc557 100644
--- a/drivers/nfc/nxp-nci/i2c.c
+++ b/drivers/nfc/nxp-nci/i2c.c
@@ -330,7 +330,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[] = {
{ "NXP1001" },
{ "NXP7471" },
{ },
--
2.20.1
Powered by blists - more mailing lists