summaryrefslogtreecommitdiff
path: root/drivers/iio
diff options
context:
space:
mode:
authorUwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com>2026-05-19 10:13:08 +0200
committerJonathan Cameron <jic23@kernel.org>2026-05-31 11:01:46 +0100
commitab233e4f9a9578faa30c1870f5436591d86c37b7 (patch)
tree9868f7c524bed15fbfc25c9157a7043d1cb70f6f /drivers/iio
parenteb3fdf3d9bcc555a535dfa771129ad048abf042e (diff)
iio: proximity: sx9360: Drop unused driver data
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@baylibre.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio')
-rw-r--r--drivers/iio/proximity/sx9360.c8
1 files 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);