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

platform/surface: Move Surface 3 Power OpRegion driver to platform/surface

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

authored by

Maximilian Luz and committed by
Hans de Goede
85f7582c 4df56c36

+8 -8
+7
drivers/platform/surface/Kconfig
··· 33 33 help 34 34 This driver handles the power/home/volume buttons on the Microsoft Surface 3 tablet. 35 35 36 + config SURFACE_3_POWER_OPREGION 37 + tristate "Surface 3 battery platform operation region support" 38 + depends on ACPI && I2C 39 + help 40 + This driver provides support for ACPI operation 41 + region of the Surface 3 battery platform driver. 42 + 36 43 endif # SURFACE_PLATFORMS
+1
drivers/platform/surface/Makefile
··· 6 6 7 7 obj-$(CONFIG_SURFACE3_WMI) += surface3-wmi.o 8 8 obj-$(CONFIG_SURFACE_3_BUTTON) += surface3_button.o 9 + obj-$(CONFIG_SURFACE_3_POWER_OPREGION) += surface3_power.o
-7
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_POWER_OPREGION 874 - tristate "Surface 3 battery platform operation region support" 875 - depends on ACPI && I2C 876 - help 877 - This driver provides support for ACPI operation 878 - region of the Surface 3 battery platform driver. 879 - 880 873 config SURFACE_PRO3_BUTTON 881 874 tristate "Power/home/volume buttons driver for Microsoft Surface Pro 3/4 tablet" 882 875 depends on ACPI && INPUT
-1
drivers/platform/x86/Makefile
··· 82 82 obj-$(CONFIG_INTEL_VBTN) += intel-vbtn.o 83 83 84 84 # Microsoft 85 - obj-$(CONFIG_SURFACE_3_POWER_OPREGION) += surface3_power.o 86 85 obj-$(CONFIG_SURFACE_PRO3_BUTTON) += surfacepro3_button.o 87 86 88 87 # MSI
drivers/platform/x86/surface3_power.c drivers/platform/surface/surface3_power.c