]> git.baikalelectronics.ru Git - kernel.git/commit
NFC: nxp-nci: Constify acpi_device_id
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 29 Jul 2019 13:35:08 +0000 (16:35 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 29 Jul 2019 15:56:26 +0000 (08:56 -0700)
commitdbbc0607d65709fa5143009bb3e46fbf08d198ba
treeb61ba500e207f456efbd7c71f988c3d9c3041705
parent2dfda115bbcaa561ee3ac7f4384d74d1953a5f88
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@linux.intel.com>
Tested-by: Sedat Dilek <sedat.dilek@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/nfc/nxp-nci/i2c.c