Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

platform/surface: Move Surface 3 WMI driver to platform/surface

Move the Surface 3 WMI driver from platform/x86 to the newly created
platform/surface directory.

Signed-off-by: Maximilian Luz <luzmaximilian@gmail.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Link: https://lore.kernel.org/r/20201009141128.683254-3-luzmaximilian@gmail.com
Signed-off-by: Hans de Goede <hdegoede@redhat.com>

authored by

Maximilian Luz and committed by
Hans de Goede
f23027ca 1e3a2bc8

+18 -13
+16
drivers/platform/surface/Kconfig
··· 12 12 kernel code. 13 13 14 14 If you say N, all options in this submenu will be skipped and disabled. 15 + 16 + if SURFACE_PLATFORMS 17 + 18 + config SURFACE3_WMI 19 + tristate "Surface 3 WMI Driver" 20 + depends on ACPI_WMI 21 + depends on DMI 22 + depends on INPUT 23 + depends on SPI 24 + help 25 + Say Y here if you have a Surface 3. 26 + 27 + To compile this driver as a module, choose M here: the module will 28 + be called surface3-wmi. 29 + 30 + endif # SURFACE_PLATFORMS
+2
drivers/platform/surface/Makefile
··· 3 3 # Makefile for linux/drivers/platform/surface 4 4 # Microsoft Surface Platform-Specific Drivers 5 5 # 6 + 7 + obj-$(CONFIG_SURFACE3_WMI) += surface3-wmi.o
-12
drivers/platform/x86/Kconfig
··· 870 870 To compile this driver as a module, choose M here: the module will 871 871 be called intel_vbtn. 872 872 873 - config SURFACE3_WMI 874 - tristate "Surface 3 WMI Driver" 875 - depends on ACPI_WMI 876 - depends on DMI 877 - depends on INPUT 878 - depends on SPI 879 - help 880 - Say Y here if you have a Surface 3. 881 - 882 - To compile this driver as a module, choose M here: the module will 883 - be called surface3-wmi. 884 - 885 873 config SURFACE_3_BUTTON 886 874 tristate "Power/home/volume buttons driver for Microsoft Surface 3 tablet" 887 875 depends on ACPI && KEYBOARD_GPIO && I2C
-1
drivers/platform/x86/Makefile
··· 82 82 obj-$(CONFIG_INTEL_VBTN) += intel-vbtn.o 83 83 84 84 # Microsoft 85 - obj-$(CONFIG_SURFACE3_WMI) += surface3-wmi.o 86 85 obj-$(CONFIG_SURFACE_3_BUTTON) += surface3_button.o 87 86 obj-$(CONFIG_SURFACE_3_POWER_OPREGION) += surface3_power.o 88 87 obj-$(CONFIG_SURFACE_PRO3_BUTTON) += surfacepro3_button.o
drivers/platform/x86/surface3-wmi.c drivers/platform/surface/surface3-wmi.c