mirror of
https://github.com/torvalds/linux.git
synced 2026-09-24 06:24:02 +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);
|
MODULE_DEVICE_TABLE(acpi, bmc150_accel_acpi_match);
|
||||||
|
|
||||||
static const struct i2c_device_id bmc150_accel_id[] = {
|
static const struct i2c_device_id bmc150_accel_id[] = {
|
||||||
{"bma222"},
|
{ .name = "bma222", .driver_data = BOSCH_UNKNOWN },
|
||||||
{"bma222e"},
|
{ .name = "bma222e", .driver_data = BOSCH_UNKNOWN },
|
||||||
{"bma250e"},
|
{ .name = "bma250e", .driver_data = BOSCH_UNKNOWN },
|
||||||
{"bma253"},
|
{ .name = "bma253", .driver_data = BOSCH_UNKNOWN },
|
||||||
{"bma254"},
|
{ .name = "bma254", .driver_data = BOSCH_UNKNOWN },
|
||||||
{"bma255"},
|
{ .name = "bma255", .driver_data = BOSCH_UNKNOWN },
|
||||||
{"bma280"},
|
{ .name = "bma280", .driver_data = BOSCH_UNKNOWN },
|
||||||
{"bmc150_accel"},
|
{ .name = "bmc150_accel", .driver_data = BOSCH_UNKNOWN },
|
||||||
{"bmc156_accel", BOSCH_BMC156},
|
{ .name = "bmc156_accel", .driver_data = BOSCH_BMC156 },
|
||||||
{"bmi055_accel"},
|
{ .name = "bmi055_accel", .driver_data = BOSCH_UNKNOWN },
|
||||||
{ }
|
{ }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user