[PATCH 0/5] media: use designated initializers for acpi_device_id

From: Pawel Zalewski

Date: Thu Oct 29 2026 - 12:58:51 EST


This series is converting lists that contain the acpi_device_id struct,
which is defined in the include/linux/device-id/acpi.h to make use of named
initializers (which they do not use currently). This work is part of the on
going effort in the kernel associated with device-ids [1]

The plan is to convert acpi_device_id::driver_data to have an anonymous
union, similarly to what was introduced for PCI and I2C device ID tables.
The goal is to increase type-safety (most of the existing casts are gone),
to improve readability and to make use intent a bit more clear:

```
union {
kernel_ulong_t driver_data;
const void *driver_data_ptr;
}
```

But for that to work all lists containing the structs need to use named
initializers first to avoid triggering -Wmissing-braces. I already have
patches that implement this and touching a lot of kernel subsystmes that
use the acpi_device_id struct and that list keeps on growing. Therefore,
I have decided to split the series per every subsystem into:
- pre-clean-ups that convert the lists to use named initializers
(which is this series)
- actual implementations that make some of the modules use the new
driver_data_ptr member

That way the task can be fragmented into manageable and independent chunks
of work and makes this effort easier to review.

Tested builds on x86-64 and a64 in Yocto using 7.3.

[1] https://lore.kernel.org/all/cover.1780048925.git.u.kleine-koenig@xxxxxxxxxxxx/

Signed-off-by: Pawel Zalewski <pzalewski@xxxxxxxxxxxxxxxxxxxx>
---
Pawel Zalewski (5):
media: cec: seco: Use named initializers for acpi_device_id
media: i2c: ccs: Unify list terminator for acpi_device_id
media: i2c: cvs: Use named initializers for acpi_device_id
media: i2c: Use named initializers for acpi_device_id
media: pci: intel: Use named initializers for acpi_device_id

drivers/media/cec/platform/seco/seco-cec.c | 4 ++--
drivers/media/i2c/ccs/ccs-core.c | 2 +-
drivers/media/i2c/cvs/core.c | 8 ++++----
drivers/media/i2c/gc0310.c | 4 ++--
drivers/media/i2c/hi556.c | 4 ++--
drivers/media/i2c/hi847.c | 4 ++--
drivers/media/i2c/imx208.c | 4 ++--
drivers/media/i2c/imx258.c | 4 ++--
drivers/media/i2c/lt6911uxe.c | 4 ++--
drivers/media/i2c/mt9m114.c | 4 ++--
drivers/media/i2c/og01a1b.c | 4 ++--
drivers/media/i2c/ov01a10.c | 4 ++--
drivers/media/i2c/ov02c10.c | 4 ++--
drivers/media/i2c/ov02e10.c | 4 ++--
drivers/media/i2c/ov08d10.c | 4 ++--
drivers/media/i2c/ov08x40.c | 4 ++--
drivers/media/i2c/ov13858.c | 4 ++--
drivers/media/i2c/ov13b10.c | 8 ++++----
drivers/media/i2c/ov2680.c | 4 ++--
drivers/media/i2c/ov2740.c | 4 ++--
drivers/media/i2c/ov5670.c | 4 ++--
drivers/media/i2c/ov5675.c | 4 ++--
drivers/media/i2c/ov5693.c | 6 +++---
drivers/media/i2c/ov7251.c | 2 +-
drivers/media/i2c/ov8856.c | 4 ++--
drivers/media/i2c/ov8865.c | 2 +-
drivers/media/i2c/ov9734.c | 4 ++--
drivers/media/i2c/t4ka3.c | 4 ++--
drivers/media/pci/intel/ipu-bridge.c | 8 ++++----
29 files changed, 62 insertions(+), 62 deletions(-)
---
base-commit: 65ba8f34ec886ec72b2c07ddc8cf3d815c32869d
change-id: 20261022-acpi-media-24f3bc53b2dc

Best regards,
--
Pawel Zalewski <pzalewski@xxxxxxxxxxxxxxxxxxxx>