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

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

Move the Surface 3 Button 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-4-luzmaximilian@gmail.com
Signed-off-by: Hans de Goede <hdegoede@redhat.com>

authored by

Maximilian Luz and committed by
Hans de Goede
4df56c36 f23027ca

+7 -7
+6
drivers/platform/surface/Kconfig
··· 27 27 To compile this driver as a module, choose M here: the module will 28 28 be called surface3-wmi. 29 29 30 + config SURFACE_3_BUTTON 31 + tristate "Power/home/volume buttons driver for Microsoft Surface 3 tablet" 32 + depends on ACPI && KEYBOARD_GPIO && I2C 33 + help 34 + This driver handles the power/home/volume buttons on the Microsoft Surface 3 tablet. 35 + 30 36 endif # SURFACE_PLATFORMS
+1
drivers/platform/surface/Makefile
··· 5 5 # 6 6 7 7 obj-$(CONFIG_SURFACE3_WMI) += surface3-wmi.o 8 + obj-$(CONFIG_SURFACE_3_BUTTON) += surface3_button.o
-6
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 SURFACE_3_BUTTON 874 - tristate "Power/home/volume buttons driver for Microsoft Surface 3 tablet" 875 - depends on ACPI && KEYBOARD_GPIO && I2C 876 - help 877 - This driver handles the power/home/volume buttons on the Microsoft Surface 3 tablet. 878 - 879 873 config SURFACE_3_POWER_OPREGION 880 874 tristate "Surface 3 battery platform operation region support" 881 875 depends on ACPI && I2C
-1
drivers/platform/x86/Makefile
··· 82 82 obj-$(CONFIG_INTEL_VBTN) += intel-vbtn.o 83 83 84 84 # Microsoft 85 - obj-$(CONFIG_SURFACE_3_BUTTON) += surface3_button.o 86 85 obj-$(CONFIG_SURFACE_3_POWER_OPREGION) += surface3_power.o 87 86 obj-$(CONFIG_SURFACE_PRO3_BUTTON) += surfacepro3_button.o 88 87
drivers/platform/x86/surface3_button.c drivers/platform/surface/surface3_button.c