[PATCH 09/12] iio: potentiometer: max5487: use named initializers for acpi_device_id

From: Pawel Zalewski

Date: Mon Oct 05 2026 - 10:08:07 EST


Use a designated initializer for the acpi_device_id fields which makes the
code more readable and consistent with how lists are initialized in the
rest of the kernel code base.

Signed-off-by: Pawel Zalewski <pzalewski@xxxxxxxxxxxxxxxxxxxx>
---
drivers/iio/potentiometer/max5487.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/iio/potentiometer/max5487.c b/drivers/iio/potentiometer/max5487.c
index 1f0d0056f412..d1eb0309d123 100644
--- a/drivers/iio/potentiometer/max5487.c
+++ b/drivers/iio/potentiometer/max5487.c
@@ -133,9 +133,9 @@ static const struct spi_device_id max5487_id[] = {
MODULE_DEVICE_TABLE(spi, max5487_id);

static const struct acpi_device_id max5487_acpi_match[] = {
- { "MAX5487", 10 },
- { "MAX5488", 50 },
- { "MAX5489", 100 },
+ { .id = "MAX5487", .driver_data = 10 },
+ { .id = "MAX5488", .driver_data = 50 },
+ { .id = "MAX5489", .driver_data = 100 },
{ }
};
MODULE_DEVICE_TABLE(acpi, max5487_acpi_match);

--
2.53.0