staging: media: atomisp: Use C99 initializers for ACPI IDs
Subsystems (4)
PATCH 1/1 staging: media: atomisp: Use C99 initializers for ACPI IDs
Use designated initializers for the ACPI ID tables.
Signed-off-by Lalit Shankar Chowdhury <[email protected]>
--- 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
@@ -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
@@ -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
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_idgc2235_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_idov2722_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