From: Andy Shevchenko Date: Mon, 29 Jul 2019 13:35:08 +0000 (+0300) Subject: NFC: nxp-nci: Constify acpi_device_id X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=52c2ea049142c75166456fed055883e22d6ba983;p=android-x86%2Fkernel.git 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 work with const acpi_device_id. So mark the non-const structs as const. Signed-off-by: Andy Shevchenko Tested-by: Sedat Dilek Signed-off-by: David S. Miller --- 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" }, { },