]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
iio: proximity: sx9360: Drop unused driver data
authorUwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com>
Tue, 19 May 2026 08:13:08 +0000 (10:13 +0200)
committerJonathan Cameron <jic23@kernel.org>
Sun, 31 May 2026 10:01:46 +0000 (11:01 +0100)
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>
drivers/iio/proximity/sx9360.c

index 4448988d4e7eb065cfe7b4f8323140ce12b3f884..4b9498022b22770da7da8d8122da958b4b2ade29 100644 (file)
@@ -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);