linux-next/drivers/platform/x86/hp
Ricardo B. Marliere 5878e5b760
platform/x86: make fw_attr_class constant
Since commit 43a7206b09 ("driver core: class: make class_register() take
a const *"), the driver core allows for struct class to be in read-only
memory, so move the fw_attr_class structure to be declared at build time
placing it into read-only memory, instead of having to be dynamically
allocated at boot time.

Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Suggested-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: "Ricardo B. Marliere" <ricardo@marliere.net>
Link: https://lore.kernel.org/r/20240305-class_cleanup-platform-v1-1-9085c97b9355@marliere.net
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
2024-03-12 12:48:13 +02:00
..
hp-bioscfg platform/x86: make fw_attr_class constant 2024-03-12 12:48:13 +02:00
hp_accel.c platform/x86: hp: hp_accel: Convert to platform remove callback returning void 2023-03-07 12:20:11 +01:00
hp-wmi.c platform/x86: hp-wmi: Add thermal profile support for 8BAD boards 2024-02-06 11:56:30 +02:00
Kconfig platform/x86: hp-bioscfg: Makefile 2023-07-10 14:41:29 +02:00
Makefile platform/x86: hp-bioscfg: Makefile 2023-07-10 14:41:29 +02:00
tc1100-wmi.c platform/x86: hp: tc1100-wmi: Convert to platform remove callback returning void 2023-03-07 12:20:15 +01:00