Add patches accepted for 2.6.22-rc4
[linux-2.6/linux-acpi-2.6/ibm-acpi-2.6.git] / releases / upstream / 2.6.22-rc1 / 0007-ACPI-ibm-acpi-move-driver-to-drivers-misc-hierarch.patch
bloba58518ab420a0f1759058b96f24f0452bc654683
1 From 3ede41c718c7845905231019e42d05a3ed329515 Mon Sep 17 00:00:00 2001
2 From: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
3 Date: Fri, 23 Mar 2007 17:34:00 -0300
4 Subject: ACPI: ibm-acpi: move driver to drivers/misc hierarchy
6 ibm-acpi is not an ACPICA driver, so move it to drivers/misc as per Len
7 Brown's request.
9 Signed-off-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
10 Signed-off-by: Len Brown <len.brown@intel.com>
11 ---
12 drivers/acpi/Kconfig | 37 -------------------------------------
13 drivers/acpi/Makefile | 1 -
14 drivers/misc/Kconfig | 37 +++++++++++++++++++++++++++++++++++++
15 drivers/misc/Makefile | 1 +
16 drivers/{acpi => misc}/ibm_acpi.c | 0
17 drivers/{acpi => misc}/ibm_acpi.h | 0
18 6 files changed, 38 insertions(+), 38 deletions(-)
19 rename drivers/{acpi => misc}/ibm_acpi.c (100%)
20 rename drivers/{acpi => misc}/ibm_acpi.h (100%)
22 diff --git a/drivers/acpi/Kconfig b/drivers/acpi/Kconfig
23 index e2ce4a9..45c4315 100644
24 --- a/drivers/acpi/Kconfig
25 +++ b/drivers/acpi/Kconfig
26 @@ -218,43 +218,6 @@ config ACPI_ASUS
27 NOTE: This driver is deprecated and will probably be removed soon,
28 use asus-laptop instead.
30 -config ACPI_IBM
31 - tristate "IBM ThinkPad Laptop Extras"
32 - depends on X86
33 - select BACKLIGHT_CLASS_DEVICE
34 - ---help---
35 - This is a Linux ACPI driver for the IBM ThinkPad laptops. It adds
36 - support for Fn-Fx key combinations, Bluetooth control, video
37 - output switching, ThinkLight control, UltraBay eject and more.
38 - For more information about this driver see <file:Documentation/ibm-acpi.txt>
39 - and <http://ibm-acpi.sf.net/> .
41 - If you have an IBM ThinkPad laptop, say Y or M here.
43 -config ACPI_IBM_DOCK
44 - bool "Legacy Docking Station Support"
45 - depends on ACPI_IBM
46 - depends on ACPI_DOCK=n
47 - default n
48 - ---help---
49 - Allows the ibm_acpi driver to handle docking station events.
50 - This support is obsoleted by CONFIG_HOTPLUG_PCI_ACPI. It will
51 - allow locking and removing the laptop from the docking station,
52 - but will not properly connect PCI devices.
54 - If you are not sure, say N here.
56 -config ACPI_IBM_BAY
57 - bool "Legacy Removable Bay Support"
58 - depends on ACPI_IBM
59 - default y
60 - ---help---
61 - Allows the ibm_acpi driver to handle removable bays. It will allow
62 - disabling the device in the bay, and also generate notifications when
63 - the bay lever is ejected or inserted.
65 - If you are not sure, say Y here.
67 config ACPI_TOSHIBA
68 tristate "Toshiba Laptop Extras"
69 depends on X86
70 diff --git a/drivers/acpi/Makefile b/drivers/acpi/Makefile
71 index 5956e9f..92642ab 100644
72 --- a/drivers/acpi/Makefile
73 +++ b/drivers/acpi/Makefile
74 @@ -55,7 +55,6 @@ obj-$(CONFIG_ACPI_SYSTEM) += system.o event.o
75 obj-$(CONFIG_ACPI_DEBUG) += debug.o
76 obj-$(CONFIG_ACPI_NUMA) += numa.o
77 obj-$(CONFIG_ACPI_ASUS) += asus_acpi.o
78 -obj-$(CONFIG_ACPI_IBM) += ibm_acpi.o
79 obj-$(CONFIG_ACPI_TOSHIBA) += toshiba_acpi.o
80 obj-$(CONFIG_ACPI_HOTPLUG_MEMORY) += acpi_memhotplug.o
81 obj-y += cm_sbs.o
82 diff --git a/drivers/misc/Kconfig b/drivers/misc/Kconfig
83 index 80b199f..5d2bcbf 100644
84 --- a/drivers/misc/Kconfig
85 +++ b/drivers/misc/Kconfig
86 @@ -122,4 +122,41 @@ config SONY_LAPTOP
88 Read <file:Documentation/sony-laptop.txt> for more information.
90 +config ACPI_IBM
91 + tristate "IBM ThinkPad Laptop Extras"
92 + depends on X86 && ACPI
93 + select BACKLIGHT_CLASS_DEVICE
94 + ---help---
95 + This is a Linux ACPI driver for the IBM ThinkPad laptops. It adds
96 + support for Fn-Fx key combinations, Bluetooth control, video
97 + output switching, ThinkLight control, UltraBay eject and more.
98 + For more information about this driver see <file:Documentation/ibm-acpi.txt>
99 + and <http://ibm-acpi.sf.net/> .
101 + If you have an IBM ThinkPad laptop, say Y or M here.
103 +config ACPI_IBM_DOCK
104 + bool "Legacy Docking Station Support"
105 + depends on ACPI_IBM
106 + depends on ACPI_DOCK=n
107 + default n
108 + ---help---
109 + Allows the ibm_acpi driver to handle docking station events.
110 + This support is obsoleted by CONFIG_HOTPLUG_PCI_ACPI. It will
111 + allow locking and removing the laptop from the docking station,
112 + but will not properly connect PCI devices.
114 + If you are not sure, say N here.
116 +config ACPI_IBM_BAY
117 + bool "Legacy Removable Bay Support"
118 + depends on ACPI_IBM
119 + default y
120 + ---help---
121 + Allows the ibm_acpi driver to handle removable bays. It will allow
122 + disabling the device in the bay, and also generate notifications when
123 + the bay lever is ejected or inserted.
125 + If you are not sure, say Y here.
127 endmenu
128 diff --git a/drivers/misc/Makefile b/drivers/misc/Makefile
129 index 7793ccd..848b398 100644
130 --- a/drivers/misc/Makefile
131 +++ b/drivers/misc/Makefile
132 @@ -12,3 +12,4 @@ obj-$(CONFIG_TIFM_CORE) += tifm_core.o
133 obj-$(CONFIG_TIFM_7XX1) += tifm_7xx1.o
134 obj-$(CONFIG_SGI_IOC4) += ioc4.o
135 obj-$(CONFIG_SONY_LAPTOP) += sony-laptop.o
136 +obj-$(CONFIG_ACPI_IBM) += ibm_acpi.o
137 diff --git a/drivers/acpi/ibm_acpi.c b/drivers/misc/ibm_acpi.c
138 similarity index 100%
139 rename from drivers/acpi/ibm_acpi.c
140 rename to drivers/misc/ibm_acpi.c
141 diff --git a/drivers/acpi/ibm_acpi.h b/drivers/misc/ibm_acpi.h
142 similarity index 100%
143 rename from drivers/acpi/ibm_acpi.h
144 rename to drivers/misc/ibm_acpi.h
146 1.5.1