[PATCH v10 03/15] media: ov2740: Use C99 initializers for ACPI IDs
From: Maurizio Casciano via B4 Relay
Date: Fri Oct 02 2026 - 04:58:48 EST
From: Maurizio Casciano <mauriziocasciano7@xxxxxxxxx>
Use designated initializers and the standard empty sentinel style
before adding firmware IDs.
Suggested-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxx>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxx>
Assisted-by: LLM sparse
Signed-off-by: Maurizio Casciano <mauriziocasciano7@xxxxxxxxx>
---
drivers/media/i2c/ov2740.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/drivers/media/i2c/ov2740.c b/drivers/media/i2c/ov2740.c
index 536325bb7b92..64a85735c1b8 100644
--- a/drivers/media/i2c/ov2740.c
+++ b/drivers/media/i2c/ov2740.c
@@ -1462,10 +1462,9 @@ static DEFINE_RUNTIME_DEV_PM_OPS(ov2740_pm_ops, ov2740_suspend, ov2740_resume,
NULL);
static const struct acpi_device_id ov2740_acpi_ids[] = {
- {"INT3474"},
- {}
+ { .id = "INT3474" },
+ { }
};
-
MODULE_DEVICE_TABLE(acpi, ov2740_acpi_ids);
static struct i2c_driver ov2740_i2c_driver = {
--
2.53.0