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>
This commit is contained in:
Uwe Kleine-König (The Capable Hub) 2026-05-19 10:13:08 +02:00 committed by Jonathan Cameron
parent eb3fdf3d9b
commit ab233e4f9a

View 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);