Skip to content

Commit e50856d

Browse files
ukleinekjic23
authored andcommitted
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>
1 parent 97caa67 commit e50856d

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

drivers/iio/accel/bmc150-accel-i2c.c

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -245,16 +245,16 @@ static const struct acpi_device_id bmc150_accel_acpi_match[] = {
245245
MODULE_DEVICE_TABLE(acpi, bmc150_accel_acpi_match);
246246

247247
static const struct i2c_device_id bmc150_accel_id[] = {
248-
{"bma222"},
249-
{"bma222e"},
250-
{"bma250e"},
251-
{"bma253"},
252-
{"bma254"},
253-
{"bma255"},
254-
{"bma280"},
255-
{"bmc150_accel"},
256-
{"bmc156_accel", BOSCH_BMC156},
257-
{"bmi055_accel"},
248+
{ .name = "bma222", .driver_data = BOSCH_UNKNOWN },
249+
{ .name = "bma222e", .driver_data = BOSCH_UNKNOWN },
250+
{ .name = "bma250e", .driver_data = BOSCH_UNKNOWN },
251+
{ .name = "bma253", .driver_data = BOSCH_UNKNOWN },
252+
{ .name = "bma254", .driver_data = BOSCH_UNKNOWN },
253+
{ .name = "bma255", .driver_data = BOSCH_UNKNOWN },
254+
{ .name = "bma280", .driver_data = BOSCH_UNKNOWN },
255+
{ .name = "bmc150_accel", .driver_data = BOSCH_UNKNOWN },
256+
{ .name = "bmc156_accel", .driver_data = BOSCH_BMC156 },
257+
{ .name = "bmi055_accel", .driver_data = BOSCH_UNKNOWN },
258258
{ }
259259
};
260260

0 commit comments

Comments
 (0)