[PATCH 1/4] platform/x86: dell-wmi: Rename dell-wmi.c to dell-wmi-base.c

From: Hans de Goede
Date: Tue May 18 2021 - 05:47:43 EST


Rename dell-wmi.c to dell-wmi-base.c, so that we can have other
dell-wmi-foo.c files which can be added to dell-wmi.ko as "plugins"
controlled by separate boolean Kconfig options.

Signed-off-by: Hans de Goede <hdegoede@xxxxxxxxxx>
---
MAINTAINERS | 2 +-
drivers/platform/x86/dell/Makefile | 1 +
drivers/platform/x86/dell/{dell-wmi.c => dell-wmi-base.c} | 0
3 files changed, 2 insertions(+), 1 deletion(-)
rename drivers/platform/x86/dell/{dell-wmi.c => dell-wmi-base.c} (100%)

diff --git a/MAINTAINERS b/MAINTAINERS
index bd7aff0c120f..f4bb5a101989 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -5170,7 +5170,7 @@ DELL WMI NOTIFICATIONS DRIVER
M: Matthew Garrett <mjg59@xxxxxxxxxxxxx>
M: Pali Rohár <pali@xxxxxxxxxx>
S: Maintained
-F: drivers/platform/x86/dell/dell-wmi.c
+F: drivers/platform/x86/dell/dell-wmi-base.c

DELTA ST MEDIA DRIVER
M: Hugues Fruchet <hugues.fruchet@xxxxxxxxxxx>
diff --git a/drivers/platform/x86/dell/Makefile b/drivers/platform/x86/dell/Makefile
index d720a3e42ae3..cc45410040cb 100644
--- a/drivers/platform/x86/dell/Makefile
+++ b/drivers/platform/x86/dell/Makefile
@@ -15,6 +15,7 @@ dell-smbios-$(CONFIG_DELL_SMBIOS_WMI) += dell-smbios-wmi.o
dell-smbios-$(CONFIG_DELL_SMBIOS_SMM) += dell-smbios-smm.o
obj-$(CONFIG_DELL_SMO8800) += dell-smo8800.o
obj-$(CONFIG_DELL_WMI) += dell-wmi.o
+dell-wmi-objs := dell-wmi-base.o
obj-$(CONFIG_DELL_WMI_AIO) += dell-wmi-aio.o
obj-$(CONFIG_DELL_WMI_DESCRIPTOR) += dell-wmi-descriptor.o
obj-$(CONFIG_DELL_WMI_LED) += dell-wmi-led.o
diff --git a/drivers/platform/x86/dell/dell-wmi.c b/drivers/platform/x86/dell/dell-wmi-base.c
similarity index 100%
rename from drivers/platform/x86/dell/dell-wmi.c
rename to drivers/platform/x86/dell/dell-wmi-base.c
--
2.31.1


--------------F32F92C122EA19D8A3A8554E
Content-Type: text/x-patch; charset=UTF-8;
name="0002-platform-x86-dell-privacy-Add-support-for-Dell-hardw.patch"
Content-Transfer-Encoding: 8bit
Content-Disposition: attachment;
filename*0="0002-platform-x86-dell-privacy-Add-support-for-Dell-hardw.pa";
filename*1="tch"