]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
iio: proximity: sx9324: Drop unused driver data
authorUwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com>
Tue, 19 May 2026 08:13:07 +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/sx9324.c

index f61eff39751d71a8957df969a530ad21e7f4220c..36c45d101336d37490e258eded5e2d356b0ea7a3 100644 (file)
@@ -1123,19 +1123,19 @@ static int sx9324_resume(struct device *dev)
 static DEFINE_SIMPLE_DEV_PM_OPS(sx9324_pm_ops, sx9324_suspend, sx9324_resume);
 
 static const struct acpi_device_id sx9324_acpi_match[] = {
-       { "STH9324", SX9324_WHOAMI_VALUE },
+       { .id = "STH9324" },
        { }
 };
 MODULE_DEVICE_TABLE(acpi, sx9324_acpi_match);
 
 static const struct of_device_id sx9324_of_match[] = {
-       { .compatible = "semtech,sx9324", (void *)SX9324_WHOAMI_VALUE },
+       { .compatible = "semtech,sx9324" },
        { }
 };
 MODULE_DEVICE_TABLE(of, sx9324_of_match);
 
 static const struct i2c_device_id sx9324_id[] = {
-       { "sx9324", SX9324_WHOAMI_VALUE },
+       { .name = "sx9324" },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, sx9324_id);