mirror of
https://github.com/torvalds/linux.git
synced 2026-09-24 06:24:02 +02:00
nfc: Drop __maybe_unused from acpi_device_id tables
Referencing these arrays in MODULE_DEVICE_TABLE() is enough to convince
the compiler that they are used even if the drivers are built-in (since
5ab23c7923 ("modpost: Create modalias for builtin modules"). So the
__maybe_unused marking can be removed without introducing a compiler
warning.
Signed-off-by: Uwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com>
Link: https://patch.msgid.link/4c25d7a7f81d5117cd5d0de4a9f06ed0552e8793.1783091699.git.u.kleine-koenig@baylibre.com
Signed-off-by: David Heidelberg <david@ixit.cz>
This commit is contained in:
parent
56345cea6a
commit
b65365e140
|
|
@ -50,7 +50,7 @@ static const struct i2c_device_id pn544_hci_i2c_id_table[] = {
|
|||
|
||||
MODULE_DEVICE_TABLE(i2c, pn544_hci_i2c_id_table);
|
||||
|
||||
static const struct acpi_device_id pn544_hci_i2c_acpi_match[] __maybe_unused = {
|
||||
static const struct acpi_device_id pn544_hci_i2c_acpi_match[] = {
|
||||
{"NXP5440", 0},
|
||||
{}
|
||||
};
|
||||
|
|
|
|||
|
|
@ -262,7 +262,7 @@ static const struct i2c_device_id st_nci_i2c_id_table[] = {
|
|||
};
|
||||
MODULE_DEVICE_TABLE(i2c, st_nci_i2c_id_table);
|
||||
|
||||
static const struct acpi_device_id st_nci_i2c_acpi_match[] __maybe_unused = {
|
||||
static const struct acpi_device_id st_nci_i2c_acpi_match[] = {
|
||||
{"SMO2101"},
|
||||
{"SMO2102"},
|
||||
{}
|
||||
|
|
|
|||
|
|
@ -277,7 +277,7 @@ static struct spi_device_id st_nci_spi_id_table[] = {
|
|||
};
|
||||
MODULE_DEVICE_TABLE(spi, st_nci_spi_id_table);
|
||||
|
||||
static const struct acpi_device_id st_nci_spi_acpi_match[] __maybe_unused = {
|
||||
static const struct acpi_device_id st_nci_spi_acpi_match[] = {
|
||||
{"SMO2101", 0},
|
||||
{}
|
||||
};
|
||||
|
|
|
|||
|
|
@ -577,7 +577,7 @@ static const struct i2c_device_id st21nfca_hci_i2c_id_table[] = {
|
|||
};
|
||||
MODULE_DEVICE_TABLE(i2c, st21nfca_hci_i2c_id_table);
|
||||
|
||||
static const struct acpi_device_id st21nfca_hci_i2c_acpi_match[] __maybe_unused = {
|
||||
static const struct acpi_device_id st21nfca_hci_i2c_acpi_match[] = {
|
||||
{"SMO2100", 0},
|
||||
{}
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user