mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/5] media: use designated initializers for acpi_device_id
@ 2026-10-29 16:54 Pawel Zalewski
  2026-10-29 16:54 ` [PATCH 1/5] media: cec: seco: Use named " Pawel Zalewski
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: Pawel Zalewski @ 2026-10-29 16:54 UTC (permalink / raw)
  To: Ettore Chimenti, Hans Verkuil, Mauro Carvalho Chehab,
	Sakari Ailus, Miguel Vadillo, Antti Laakso, Hans de Goede,
	Laurent Pinchart, Bingbu Cao, Bryan O'Donoghue, Jimmy Su,
	Matthias Fend, Arec Kao, Rui Miguel Silva, Daniel Scally,
	Kate Hsuan
  Cc: linux-media, linux-kernel, Pawel Zalewski

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@baylibre.com/

Signed-off-by: Pawel Zalewski <pzalewski@thegoodpenguin.co.uk>
---
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@thegoodpenguin.co.uk>


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2026-11-19 15:09 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-29 16:54 [PATCH 0/5] media: use designated initializers for acpi_device_id Pawel Zalewski
2026-10-29 16:54 ` [PATCH 1/5] media: cec: seco: Use named " Pawel Zalewski
2026-11-19 15:09   ` Mauro Carvalho Chehab
2026-10-29 16:54 ` [PATCH 2/5] media: i2c: ccs: Unify list terminator " Pawel Zalewski
2026-10-29 16:54 ` [PATCH 3/5] media: i2c: cvs: Use named initializers " Pawel Zalewski
2026-10-29 16:54 ` [PATCH 4/5] media: i2c: " Pawel Zalewski
2026-10-29 16:54 ` [PATCH 5/5] media: pci: intel: " Pawel Zalewski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®