Skip to contentSkip to conversation

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

PATCH Superseded Lalit Shankar Chowdhury 2 participants 2 messages Sep 6

Subsystems (4)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 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..588f2f90a884 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..b02fe0c915ab 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
#1 lore raw
Quoted 2 lines · Lalit Shankar Chowdhury

Use designated initializers for the ACPI ID tables.

...

drivers/staging/media/atomisp/i2c/atomisp-gc2235.c static int gc2235_probe(struct i2c_client *client) · line 861

Quoted 5 lines

static const struct acpi_device_id gc2235_acpi_match[] = {

drivers/staging/media/atomisp/i2c/atomisp-gc2235.c +2 -2
-       { "INT33F8" },
-       {},
+       { .id = "INT33F8" },
+       { },

Follow the agreed style for the terminator entry. See Uwe's patches as an example.

Quoted 1 line

};

...

drivers/staging/media/atomisp/i2c/atomisp-ov2722.c static int ov2722_probe(struct i2c_client *client) · line 999

Quoted 5 lines

static const struct acpi_device_id ov2722_acpi_match[] = {

drivers/staging/media/atomisp/i2c/atomisp-ov2722.c +2 -2
-       { "INT33FB" },
-       {},
+       { .id = "INT33FB" },
+       { },

Ditto.

Quoted 1 line

};

Signature · 2 lines
With Best Regards,
Andy Shevchenko