]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
platform/surface: Move Surface 3 Power OpRegion driver to platform/surface
authorMaximilian Luz <luzmaximilian@gmail.com>
Fri, 9 Oct 2020 14:11:27 +0000 (16:11 +0200)
committerHans de Goede <hdegoede@redhat.com>
Tue, 27 Oct 2020 11:51:24 +0000 (12:51 +0100)
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>
drivers/platform/surface/Kconfig
drivers/platform/surface/Makefile
drivers/platform/surface/surface3_power.c [moved from drivers/platform/x86/surface3_power.c with 100% similarity]
drivers/platform/x86/Kconfig
drivers/platform/x86/Makefile

index 1a7cf6a73d523e6737adf68a77d776317b2f0298..ac1c749a7a2ff8b4bd59df79bd601d8bd60e751e 100644 (file)
@@ -33,4 +33,11 @@ config SURFACE_3_BUTTON
        help
          This driver handles the power/home/volume buttons on the Microsoft Surface 3 tablet.
 
+config SURFACE_3_POWER_OPREGION
+       tristate "Surface 3 battery platform operation region support"
+       depends on ACPI && I2C
+       help
+         This driver provides support for ACPI operation
+         region of the Surface 3 battery platform driver.
+
 endif # SURFACE_PLATFORMS
index 8588dc178245afbff88bc099c5330e97ff001011..4940d4db58b2ece4bb1ef0af1c0bc08a2c85bbc9 100644 (file)
@@ -6,3 +6,4 @@
 
 obj-$(CONFIG_SURFACE3_WMI)             += surface3-wmi.o
 obj-$(CONFIG_SURFACE_3_BUTTON)         += surface3_button.o
+obj-$(CONFIG_SURFACE_3_POWER_OPREGION) += surface3_power.o
index 5fba590a1a67cf45fa7c3c238d7f203d0b54f412..8417ee0178d0c4768498a769cdb220c21c856dbb 100644 (file)
@@ -870,13 +870,6 @@ config INTEL_VBTN
          To compile this driver as a module, choose M here: the module will
          be called intel_vbtn.
 
-config SURFACE_3_POWER_OPREGION
-       tristate "Surface 3 battery platform operation region support"
-       depends on ACPI && I2C
-       help
-         This driver provides support for ACPI operation
-         region of the Surface 3 battery platform driver.
-
 config SURFACE_PRO3_BUTTON
        tristate "Power/home/volume buttons driver for Microsoft Surface Pro 3/4 tablet"
        depends on ACPI && INPUT
index 0fd70d5d2cf3bd9b30eb4e7bc913f8296a3fbf86..ffa31f57d9a2af52a4e4a24bfbbe317fe970166a 100644 (file)
@@ -82,7 +82,6 @@ obj-$(CONFIG_INTEL_OAKTRAIL)          += intel_oaktrail.o
 obj-$(CONFIG_INTEL_VBTN)               += intel-vbtn.o
 
 # Microsoft
-obj-$(CONFIG_SURFACE_3_POWER_OPREGION) += surface3_power.o
 obj-$(CONFIG_SURFACE_PRO3_BUTTON)      += surfacepro3_button.o
 
 # MSI