linux/drivers/platform/x86/dell
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
..
dell-wmi-sysman platform/x86: make fw_attr_class constant 2024-03-12 12:48:13 +02:00
alienware-wmi.c platform/x86/dell: alienware-wmi: Use kasprintf() 2023-11-20 14:05:04 +01:00
dcdbas.c Documentation: move driver-api/dcdbas to userspace-api/ 2024-01-03 14:17:40 -07:00
dcdbas.h platform/x86/dell: add buffer allocation/free functions for SMI calls 2022-04-27 21:45:28 +02:00
dell_rbu.c platform/x86: use PLATFORM_DEVID_NONE instead of -1 2022-10-03 09:40:04 +02:00
dell-laptop.c platform/x86: remove obsolete calls to ledtrig_audio_get 2024-01-24 12:37:09 +02:00
dell-rbtn.c platform/x86/dell/dell-rbtn: Fix resources leaking on error path 2023-06-14 09:21:19 +02:00
dell-rbtn.h
dell-smbios-base.c platform/x86: dell-smbios-base: Use sysfs_emit() 2022-09-27 15:05:32 +02:00
dell-smbios-smm.c platform/x86/dell: add buffer allocation/free functions for SMI calls 2022-04-27 21:45:28 +02:00
dell-smbios-wmi.c platform/x86: dell-smbios-wmi: Stop using WMI chardev 2023-12-11 11:23:54 +01:00
dell-smbios.h platform/x86: dell-laptop: Register ctl-led for speaker-mute 2023-03-16 14:51:07 +01:00
dell-smo8800.c platform/x86: dell: dell-smo8800: Convert to platform remove callback returning void 2023-03-07 12:19:56 +01:00
dell-wmi-aio.c
dell-wmi-base.c platform/x86: dell-wmi: Add a keymap for KEY_MUTE in type 0x0010 table 2023-01-24 13:41:13 +01:00
dell-wmi-ddv.c platform/x86: wmi: Do not instantiate older WMI drivers multiple times 2024-03-12 12:47:35 +02:00
dell-wmi-descriptor.c platform/x86: Adjust Dell drivers to a personal email address 2021-04-07 19:47:23 +02:00
dell-wmi-descriptor.h
dell-wmi-led.c
dell-wmi-privacy.c platform/x86: dell-privacy: Remove usage of wmi_has_guid() 2024-02-27 14:45:27 +02:00
dell-wmi-privacy.h platform/x86: dell-privacy: Add support for Dell hardware privacy 2021-06-16 17:47:51 +02:00
Kconfig platform/x86: remove obsolete calls to ledtrig_audio_get 2024-01-24 12:37:09 +02:00
Makefile platform/x86: dell: Add new dell-wmi-ddv driver 2022-11-16 08:48:18 +01:00