[PATCH 7/9] ACPI: nfit: core: drop unused assignment of acpi_device_id::driver_data
Pawel Zalewski (The Capable Hub)
pzalewski at thegoodpenguin.co.uk
Mon Jul 27 05:10:45 PDT 2026
This module sets the acpi_device_id::driver_data to 0 but
the field is not actually used within the module, we can
just drop it from the table.
While we are at it - used a named initializer for the
acpi_device_id::id field to increase readability and
drop explicitly setting the list terminator fields.
Signed-off-by: Pawel Zalewski (The Capable Hub) <pzalewski at thegoodpenguin.co.uk>
---
drivers/acpi/nfit/core.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/acpi/nfit/core.c b/drivers/acpi/nfit/core.c
index cb771d9cadb2..5732df5d53f0 100644
--- a/drivers/acpi/nfit/core.c
+++ b/drivers/acpi/nfit/core.c
@@ -3515,8 +3515,8 @@ void __acpi_nfit_notify(struct device *dev, acpi_handle handle, u32 event)
EXPORT_SYMBOL_GPL(__acpi_nfit_notify);
static const struct acpi_device_id acpi_nfit_ids[] = {
- { "ACPI0012", 0 },
- { "", 0 },
+ { .id = "ACPI0012" },
+ { }
};
MODULE_DEVICE_TABLE(acpi, acpi_nfit_ids);
--
2.43.0
More information about the linux-arm-kernel
mailing list