[PATCH 01/10] mtd: maps: pismo: Use named initializers for i2c_device_id
From: Pawel Zalewski
Date: Wed Nov 25 2026 - 11:28:53 EST
Use a designated initializer for the i2c_device_id fields which makes the
code more readable and consistent with how lists are initialized in the
rest of the kernel code base.
Unify the list terminator to have a single space between the brackets and
no trailing comma.
Signed-off-by: Pawel Zalewski <pzalewski@xxxxxxxxxxxxxxxxxxxx>
---
drivers/mtd/maps/pismo.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/mtd/maps/pismo.c b/drivers/mtd/maps/pismo.c
index b0310fddcaa3..babb6d367623 100644
--- a/drivers/mtd/maps/pismo.c
+++ b/drivers/mtd/maps/pismo.c
@@ -250,8 +250,8 @@ static int pismo_probe(struct i2c_client *client)
}
static const struct i2c_device_id pismo_id[] = {
- { "pismo" },
- { },
+ { .name = "pismo" },
+ { }
};
MODULE_DEVICE_TABLE(i2c, pismo_id);
--
2.53.0