Skip to content

Commit eb3fdf3

Browse files
ukleinekjic23
authored andcommitted
iio: proximity: sx9324: 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>
1 parent a7ee2d0 commit eb3fdf3

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

drivers/iio/proximity/sx9324.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1123,19 +1123,19 @@ static int sx9324_resume(struct device *dev)
11231123
static DEFINE_SIMPLE_DEV_PM_OPS(sx9324_pm_ops, sx9324_suspend, sx9324_resume);
11241124

11251125
static const struct acpi_device_id sx9324_acpi_match[] = {
1126-
{ "STH9324", SX9324_WHOAMI_VALUE },
1126+
{ .id = "STH9324" },
11271127
{ }
11281128
};
11291129
MODULE_DEVICE_TABLE(acpi, sx9324_acpi_match);
11301130

11311131
static const struct of_device_id sx9324_of_match[] = {
1132-
{ .compatible = "semtech,sx9324", (void *)SX9324_WHOAMI_VALUE },
1132+
{ .compatible = "semtech,sx9324" },
11331133
{ }
11341134
};
11351135
MODULE_DEVICE_TABLE(of, sx9324_of_match);
11361136

11371137
static const struct i2c_device_id sx9324_id[] = {
1138-
{ "sx9324", SX9324_WHOAMI_VALUE },
1138+
{ .name = "sx9324" },
11391139
{ }
11401140
};
11411141
MODULE_DEVICE_TABLE(i2c, sx9324_id);

0 commit comments

Comments
 (0)