[PATCH v2 6/7] iio: proximity: sx9360: Drop unused driver data
From: Uwe Kleine-König (The Capable Hub)
Date: Tue May 19 2026 - 04:21:46 EST
The value assigned in the three device_id entries (ACPI, of and i2c) are
unused, directly in the driver and also the sx_common support lib. Drop
them and while touching these arrays, convert to named initializers.
Signed-off-by: Uwe Kleine-König (The Capable Hub) <u.kleine-koenig@xxxxxxxxxxxx>
---
drivers/iio/proximity/sx9360.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/iio/proximity/sx9360.c b/drivers/iio/proximity/sx9360.c
index 4448988d4e7e..4b9498022b22 100644
--- a/drivers/iio/proximity/sx9360.c
+++ b/drivers/iio/proximity/sx9360.c
@@ -832,20 +832,20 @@ static int sx9360_resume(struct device *dev)
static DEFINE_SIMPLE_DEV_PM_OPS(sx9360_pm_ops, sx9360_suspend, sx9360_resume);
static const struct acpi_device_id sx9360_acpi_match[] = {
- { "STH9360", SX9360_WHOAMI_VALUE },
- { "SAMM0208", SX9360_WHOAMI_VALUE },
+ { .id = "STH9360" },
+ { .id = "SAMM0208" },
{ }
};
MODULE_DEVICE_TABLE(acpi, sx9360_acpi_match);
static const struct of_device_id sx9360_of_match[] = {
- { .compatible = "semtech,sx9360", (void *)SX9360_WHOAMI_VALUE },
+ { .compatible = "semtech,sx9360" },
{ }
};
MODULE_DEVICE_TABLE(of, sx9360_of_match);
static const struct i2c_device_id sx9360_id[] = {
- {"sx9360", SX9360_WHOAMI_VALUE },
+ { .name = "sx9360" },
{ }
};
MODULE_DEVICE_TABLE(i2c, sx9360_id);
--
2.47.3