mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v2 0/2] mfd: use designated initializers for acpi_device_id
@ 2026-11-04 16:09 Pawel Zalewski
  2026-11-04 16:09 ` [PATCH v2 1/2] mfd: intel-lpss-acpi: Use named " Pawel Zalewski
  2026-11-04 16:09 ` [PATCH v2 2/2] mfd: " Pawel Zalewski
  0 siblings, 2 replies; 5+ messages in thread
From: Pawel Zalewski @ 2026-11-04 16:09 UTC (permalink / raw)
  To: Lee Jones, Chen-Yu Tsai, David Rhodes, Richard Fitzgerald,
	Andy Shevchenko, Mika Westerberg, Zha Qipeng, Qunqin Zhao,
	Thomas Richard, Andy Shevchenko
  Cc: mfd, linux-kernel, linux-sound, patches, linux-crypto,
	Pawel Zalewski, Charles Keepax

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.

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

Signed-off-by: Pawel Zalewski <pzalewski@thegoodpenguin.co.uk>
---
Changes in v2:
- Split Intel LPSS into its own patch.
- Added a review tag from V1.
- Link to v1: https://patch.msgid.link/20261102-acpi-mfd-v1-1-d61029971be8@thegoodpenguin.co.uk

To: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
To: Lee Jones <lee@kernel.org>
To: Chen-Yu Tsai <wens@kernel.org>
To: David Rhodes <david.rhodes@cirrus.com>
To: Richard Fitzgerald <rf@opensource.cirrus.com>
To: Mika Westerberg <mika.westerberg@linux.intel.com>
To: Zha Qipeng <qipeng.zha@intel.com>
To: Andy Shevchenko <andy@kernel.org>
To: Qunqin Zhao <zhaoqunqin@loongson.cn>
To: Thomas Richard <thomas.richard@bootlin.com>
Cc: mfd@lists.linux.dev
Cc: linux-kernel@vger.kernel.org
Cc: linux-sound@vger.kernel.org
Cc: patches@opensource.cirrus.com
Cc: linux-crypto@vger.kernel.org

---
Pawel Zalewski (2):
      mfd: intel-lpss-acpi: Use named initializers for acpi_device_id
      mfd: Use named initializers for acpi_device_id

 drivers/mfd/axp20x-i2c.c              |  2 +-
 drivers/mfd/cs42l43-i2c.c             |  8 ++---
 drivers/mfd/intel-lpss-acpi.c         | 58 +++++++++++++++++------------------
 drivers/mfd/intel_pmc_bxt.c           |  2 +-
 drivers/mfd/intel_soc_pmic_bxtwc.c    |  2 +-
 drivers/mfd/intel_soc_pmic_chtdc_ti.c |  4 +--
 drivers/mfd/intel_soc_pmic_chtwc.c    |  2 +-
 drivers/mfd/intel_soc_pmic_crc.c      |  4 +--
 drivers/mfd/intel_soc_pmic_mrfld.c    |  4 +--
 drivers/mfd/kempld-core.c             |  6 ++--
 drivers/mfd/loongson-se.c             |  2 +-
 drivers/mfd/upboard-fpga.c            |  6 ++--
 12 files changed, 50 insertions(+), 50 deletions(-)
---
base-commit: 05441d697f7f9a927264f4058cbbc6a03dfcac9d
change-id: 20261030-acpi-mfd-a6ac9d16671b

Best regards,
--  
Pawel Zalewski <pzalewski@thegoodpenguin.co.uk>


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

end of thread, other threads:[~2026-11-04 21:37 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-04 16:09 [PATCH v2 0/2] mfd: use designated initializers for acpi_device_id Pawel Zalewski
2026-11-04 16:09 ` [PATCH v2 1/2] mfd: intel-lpss-acpi: Use named " Pawel Zalewski
2026-11-04 21:36   ` Andy Shevchenko
2026-11-04 16:09 ` [PATCH v2 2/2] mfd: " Pawel Zalewski
2026-11-04 21:37   ` Andy Shevchenko

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®