mbox series

[0/2] platform/x86: firmware_attributes_class: Provide a highlevel interface

Message ID 20250107-pdx86-firmware-attributes-v1-0-9d75c04a3b52@weissschuh.net (mailing list archive)
Headers show
Series platform/x86: firmware_attributes_class: Provide a highlevel interface | expand

Message

Thomas Weißschuh Jan. 7, 2025, 5:05 p.m. UTC
Currently each user of firmware_attributes_class has to manually set up
kobjects, devices, etc.
Provide a higher level API which takes care of the low-level details.

Also provide a test driver for the new API.

Based upon pdx86/for-next and my firmware_attributes simplification
series[0].

[0] https://lore.kernel.org/lkml/20250104-firmware-attributes-simplify-v1-0-949f9709e405@weissschuh.net/

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
---
Thomas Weißschuh (2):
      platform/x86: firmware_attributes_class: Provide a highlevel interface
      platform/x86: firmware_attributes_class: Add test driver

 drivers/platform/x86/Kconfig                     |  12 ++
 drivers/platform/x86/Makefile                    |   1 +
 drivers/platform/x86/firmware_attributes_class.c | 146 +++++++++++++++++++++++
 drivers/platform/x86/firmware_attributes_class.h |  37 ++++++
 drivers/platform/x86/firmware_attributes_test.c  |  78 ++++++++++++
 5 files changed, 274 insertions(+)
---
base-commit: 25f05112995242b5a7ec1a91fbcb4dab66719af2
change-id: 20250107-pdx86-firmware-attributes-a5175a425fca

Best regards,