Skip to contentSkip to conversation

staging: media: atomisp: Use C99 initializers for ACPI IDs

PATCH In review Lalit Shankar Chowdhury 2 participants 2 messages Sep 7

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 staging: media: atomisp: Use C99 initializers for ACPI IDs

Use designated initializers for the ACPI ID tables.

---
 drivers/staging/media/atomisp/i2c/atomisp-gc2235.c | 4 ++--
 drivers/staging/media/atomisp/i2c/atomisp-ov2722.c | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)
drivers/staging/media/atomisp/i2c/atomisp-gc2235.c +2 -2
index f9cc5f45fe00..5e4bdbc4a127 100644
@@ -857,8 +857,8 @@ static int gc2235_probe(struct i2c_client *client)
 }
 
 static const struct acpi_device_id gc2235_acpi_match[] = {
-	{ "INT33F8" },
-	{},
+	{ .id = "INT33F8" },
+	{ }
 };
 MODULE_DEVICE_TABLE(acpi, gc2235_acpi_match);
 
drivers/staging/media/atomisp/i2c/atomisp-ov2722.c +2 -2
index 2c41c496daa6..2d95ad91db69 100644
@@ -995,8 +995,8 @@ static int ov2722_probe(struct i2c_client *client)
 }
 
 static const struct acpi_device_id ov2722_acpi_match[] = {
-	{ "INT33FB" },
-	{},
+	{ .id = "INT33FB" },
+	{ }
 };
 MODULE_DEVICE_TABLE(acpi, ov2722_acpi_match);
 
Signature · 1 line
2.53.0
Reviewed-by on v2 1/1
#1 lore raw
Quoted 5 lines · Lalit Shankar Chowdhury

Use designated initializers for the ACPI ID tables.

 drivers/staging/media/atomisp/i2c/atomisp-gc2235.c | 4 ++--
 drivers/staging/media/atomisp/i2c/atomisp-ov2722.c | 4 ++--

These drivers should be gone in the future (and the regular ones from v4l2 should be in use), but so far if somebody is happy to take this patch,

Signature · 2 lines
With Best Regards,
Andy Shevchenko