mirror of
https://github.com/torvalds/linux.git
synced 2026-07-28 01:55:51 +02:00
iio: accel: bmc150: Explicitly set .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. 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:
parent
97caa67b1c
commit
e50856dc41
|
|
@ -245,16 +245,16 @@ static const struct acpi_device_id bmc150_accel_acpi_match[] = {
|
|||
MODULE_DEVICE_TABLE(acpi, bmc150_accel_acpi_match);
|
||||
|
||||
static const struct i2c_device_id bmc150_accel_id[] = {
|
||||
{"bma222"},
|
||||
{"bma222e"},
|
||||
{"bma250e"},
|
||||
{"bma253"},
|
||||
{"bma254"},
|
||||
{"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 = "bma254", .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 },
|
||||
{ }
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user