mirror of
https://github.com/torvalds/linux.git
synced 2026-09-23 22:14:03 +02:00
iio: accel: bmc150: Explicitly set spi .driver_data
There is one id entry that has an explicit assignment to .driver_data.
To make the intention clearer, assign BOSCH_UNKNOWN (which is also 0)
for all previously ids that had .driver_data = 0 implicitly before.
While touching all entries in this array, convert to named initializers.
This change is similar to commit e50856dc41 ("iio: accel: bmc150:
Explicitly set .driver_data") but cares for the driver's spi part
instead of i2c.
Signed-off-by: Uwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com>
Reviewed-by: Nuno Sá <nuno.sa@analog.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
This commit is contained in:
parent
9b6229006f
commit
15568c6083
|
|
@ -53,15 +53,15 @@ static const struct acpi_device_id bmc150_accel_acpi_match[] = {
|
|||
MODULE_DEVICE_TABLE(acpi, bmc150_accel_acpi_match);
|
||||
|
||||
static const struct spi_device_id bmc150_accel_id[] = {
|
||||
{"bma222"},
|
||||
{"bma222e"},
|
||||
{"bma250e"},
|
||||
{"bma253"},
|
||||
{"bma255"},
|
||||
{"bma280"},
|
||||
{"bmc150_accel"},
|
||||
{"bmc156_accel", BOSCH_BMC156},
|
||||
{"bmi055_accel"},
|
||||
{ .name = "bma222", .driver_data = BOSCH_UNKNOWN },
|
||||
{ .name = "bma222e", .driver_data = BOSCH_UNKNOWN },
|
||||
{ .name = "bma250e", .driver_data = BOSCH_UNKNOWN },
|
||||
{ .name = "bma253", .driver_data = BOSCH_UNKNOWN },
|
||||
{ .name = "bma255", .driver_data = BOSCH_UNKNOWN },
|
||||
{ .name = "bma280", .driver_data = BOSCH_UNKNOWN },
|
||||
{ .name = "bmc150_accel", .driver_data = BOSCH_UNKNOWN },
|
||||
{ .name = "bmc156_accel", .driver_data = BOSCH_BMC156 },
|
||||
{ .name = "bmi055_accel", .driver_data = BOSCH_UNKNOWN },
|
||||
{ }
|
||||
};
|
||||
MODULE_DEVICE_TABLE(spi, bmc150_accel_id);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user