]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
sony-laptop: create from sony_acpi
authorMattia Dongili <malattia@linux.it>
Wed, 7 Feb 2007 19:01:53 +0000 (20:01 +0100)
committerLen Brown <len.brown@intel.com>
Tue, 13 Feb 2007 08:06:53 +0000 (03:06 -0500)
Move drivers/acpi/sony_acpi.c to drivers/misc/sony-laptop.c with all the
necessary configuration.
The SONY_LAPTOP config option substitutes the old ACPI_SONY and is 'default n'
now.

Signed-off-by: Mattia Dongili <malattia@linux.it>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/Kconfig
drivers/acpi/Makefile
drivers/misc/Kconfig
drivers/misc/Makefile
drivers/misc/sony-laptop.c [moved from drivers/acpi/sony_acpi.c with 99% similarity]

index 364e6fe8ec350a1cd810f9aa39305b2cfe1f6c94..f4f000abc4e9f497e08bb80c64af2a627e3bdb84 100644 (file)
@@ -252,21 +252,6 @@ config ACPI_TOSHIBA
          If you have a legacy free Toshiba laptop (such as the Libretto L1
          series), say Y.
 
-config ACPI_SONY
-       tristate "Sony Laptop Extras"
-       depends on X86 && ACPI
-       select BACKLIGHT_CLASS_DEVICE
-       default m
-         ---help---
-         This mini-driver drives the ACPI SNC device present in the
-         ACPI BIOS of the Sony Vaio laptops.
-
-         It gives access to some extra laptop functionalities. In
-         its current form, the only thing this driver does is letting
-         the user set or query the screen brightness.
-
-         Read <file:Documentation/acpi/sony_acpi.txt> for more information.
-
 config ACPI_CUSTOM_DSDT
        bool "Include Custom DSDT"
        depends on !STANDALONE
index 31b9ad2218af311b55dace263fb554c837bc9656..bce7ca27b429e2874eb4e78a229dd65871070d6c 100644 (file)
@@ -53,7 +53,6 @@ obj-$(CONFIG_ACPI_THERMAL)    += thermal.o
 obj-$(CONFIG_ACPI_SYSTEM)      += system.o event.o
 obj-$(CONFIG_ACPI_DEBUG)       += debug.o
 obj-$(CONFIG_ACPI_NUMA)                += numa.o
-obj-$(CONFIG_ACPI_SONY)                += sony_acpi.o
 obj-$(CONFIG_ACPI_ASUS)                += asus_acpi.o
 obj-$(CONFIG_ACPI_IBM)         += ibm_acpi.o
 obj-$(CONFIG_ACPI_TOSHIBA)     += toshiba_acpi.o
index 00db31c314e0d9d30a8287eed91cea12de375665..78fc47ba971784169d42ebbf2674af2f5270d2a7 100644 (file)
@@ -88,4 +88,18 @@ config MSI_LAPTOP
 
          If you have an MSI S270 laptop, say Y or M here.
 
+config SONY_LAPTOP
+       tristate "Sony Laptop Extras"
+       depends on X86 && ACPI
+       select BACKLIGHT_CLASS_DEVICE
+         ---help---
+         This mini-driver drives the ACPI SNC device present in the
+         ACPI BIOS of the Sony Vaio laptops.
+
+         It gives access to some extra laptop functionalities. In
+         its current form, the only thing this driver does is letting
+         the user set or query the screen brightness.
+
+         Read <file:Documentation/acpi/sony_acpi.txt> for more information.
+
 endmenu
index c9e98ab021c5b096658012057a8e58542bbb1eef..f86f9dcfcfe52c23b23e87376f5c67b20808b18c 100644 (file)
@@ -10,3 +10,4 @@ obj-$(CONFIG_LKDTM)           += lkdtm.o
 obj-$(CONFIG_TIFM_CORE)        += tifm_core.o
 obj-$(CONFIG_TIFM_7XX1)        += tifm_7xx1.o
 obj-$(CONFIG_SGI_IOC4)         += ioc4.o
+obj-$(CONFIG_SONY_LAPTOP)      += sony-laptop.o
similarity index 99%
rename from drivers/acpi/sony_acpi.c
rename to drivers/misc/sony-laptop.c
index c01d98db2fc1513138536c448c20f3ec2f7e6b24..103657e1b449381c51a7206f4d7daa2667f005b9 100644 (file)
@@ -356,7 +356,7 @@ static int sony_acpi_add(struct acpi_device *device)
                                        NULL, &sony_backlight_properties);
 
                if (IS_ERR(sony_backlight_device)) {
-                       printk(LOG_PFX "unable to register backlight device\n");
+                       printk(LOG_PFX "unable to register backlight device\n");
                        sony_backlight_device = NULL;
                }
                else