[PATCH 04/12] iio: gyro: bmg160_i2c: use named initializers for acpi_device_id
From: Pawel Zalewski
Date: Mon Oct 05 2026 - 10:06:17 EST
Use a designated initializer for the acpi_device_id fields which makes the
code more readable and consistent with how lists are initialized in the
rest of the kernel code base. Also drop explicitly setting fields to 0
where it is redundant.
Signed-off-by: Pawel Zalewski <pzalewski@xxxxxxxxxxxxxxxxxxxx>
---
drivers/iio/gyro/bmg160_i2c.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/iio/gyro/bmg160_i2c.c b/drivers/iio/gyro/bmg160_i2c.c
index be3cfbd286aa..e4ebd0318494 100644
--- a/drivers/iio/gyro/bmg160_i2c.c
+++ b/drivers/iio/gyro/bmg160_i2c.c
@@ -39,7 +39,7 @@ static void bmg160_i2c_remove(struct i2c_client *client)
}
static const struct acpi_device_id bmg160_acpi_match[] = {
- {"BMG0160", 0},
+ { .id = "BMG0160" },
{ }
};
--
2.53.0