linux/drivers/platform/x86/hp/hp-bioscfg
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
..
biosattr-interface.c platform/x86: hp-bioscfg: Annotate struct bios_args with __counted_by 2023-09-26 16:00:56 +03:00
bioscfg.c platform/x86: make fw_attr_class constant 2024-03-12 12:48:13 +02:00
bioscfg.h
enum-attributes.c platform/x86: hp-bioscfg: Change how enum possible values size is evaluated 2023-08-07 13:35:28 +02:00
int-attributes.c platform/x86: hp-bioscfg: Change how prerequisites size is evaluated 2023-08-07 13:34:46 +02:00
Makefile platform/x86: hp-bioscfg: Makefile 2023-07-10 14:41:29 +02:00
order-list-attributes.c platform/x86: hp-bioscfg: Update steps order list elements are evaluated 2023-08-21 18:56:18 +02:00
passwdobj-attributes.c platform/x86: hp-bioscfg: Removed needless asm-generic 2023-12-28 10:06:44 +01:00
spmobj-attributes.c platform/x86: hp-bioscfg: Use kmemdup() to replace kmalloc + memcpy 2023-08-07 13:36:20 +02:00
string-attributes.c platform/x86: hp-bioscfg: Change how prerequisites size is evaluated 2023-08-07 13:34:46 +02:00
surestart-attributes.c platform/x86: hp-bioscfg: surestart-attributes 2023-07-10 14:41:28 +02:00