On 1/3/2025 17:05, Thomas Weißschuh wrote:
> Looking at the users of firmware_attributes_class makes my head hurt.
> Simplify the subsystem and its users.
>
> This will break the currently developed samsung-galaxybook driver,
> resolving the breakage should be trivial.
It will also break the lenovo legion wmi drivers that are in review
right now too, but I agree it should be trivial to fix that too.
>
> Only compile-tested.
>
> I have some further improvements in the pipeline building on these
> changes, but those will need some more time.
>
> Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Reviewed-by: Mario Limonciello <mario.limonciello@amd.com>
> ---
> Thomas Weißschuh (6):
> platform/x86: firmware_attributes_class: Move include linux/device/class.h
> platform/x86: firmware_attributes_class: Simplify API
> platform/x86: think-lmi: Directly use firmware_attributes_class
> platform/x86: hp-bioscfg: Directly use firmware_attributes_class
> platform/x86: dell-sysman: Directly use firmware_attributes_class
> platform/x86: firmware_attributes_class: Drop lifecycle functions
>
> drivers/platform/x86/dell/dell-wmi-sysman/sysman.c | 17 +++------
> drivers/platform/x86/firmware_attributes_class.c | 42 +++++-----------------
> drivers/platform/x86/firmware_attributes_class.h | 5 +--
> drivers/platform/x86/hp/hp-bioscfg/bioscfg.c | 14 ++------
> drivers/platform/x86/think-lmi.c | 13 ++-----
> 5 files changed, 21 insertions(+), 70 deletions(-)
> ---
> base-commit: 0bc21e701a6ffacfdde7f04f87d664d82e8a13bf
> change-id: 20250103-firmware-attributes-simplify-9ae561459260
>
> Best regards,