aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorHenrique de Moraes Holschuh <hmh@hmh.eng.br>2007-03-29 00:58:41 -0400
committerLen Brown <len.brown@intel.com>2007-03-30 15:35:42 -0400
commit85998248b2e8c6ae7d3ad1fa7b059aed22205ec4 (patch)
tree51d1660479b6f5e8484aafb0ca767aa94c612bc7 /drivers
parentf21f85de4b3b9ad4a671fb19a889c16db2ea38b2 (diff)
ACPI: thinkpad-acpi: cleanup Kconfig for thinkpad-acpi
Since ibm-acpi was renamed to thinkpad-acpi, rename and update its Kconfig entries and Kconfig-related symbols accordingly. Signed-off-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br> Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/misc/Kconfig37
-rw-r--r--drivers/misc/Makefile2
-rw-r--r--drivers/misc/thinkpad_acpi.c26
-rw-r--r--drivers/misc/thinkpad_acpi.h8
4 files changed, 38 insertions, 35 deletions
diff --git a/drivers/misc/Kconfig b/drivers/misc/Kconfig
index 5d2bcbf1e3d4..2cd96a3dff54 100644
--- a/drivers/misc/Kconfig
+++ b/drivers/misc/Kconfig
@@ -122,40 +122,43 @@ config SONY_LAPTOP
122 122
123 Read <file:Documentation/sony-laptop.txt> for more information. 123 Read <file:Documentation/sony-laptop.txt> for more information.
124 124
125config ACPI_IBM 125config THINKPAD_ACPI
126 tristate "IBM ThinkPad Laptop Extras" 126 tristate "ThinkPad ACPI Laptop Extras"
127 depends on X86 && ACPI 127 depends on X86 && ACPI
128 select BACKLIGHT_CLASS_DEVICE 128 select BACKLIGHT_CLASS_DEVICE
129 ---help--- 129 ---help---
130 This is a Linux ACPI driver for the IBM ThinkPad laptops. It adds 130 This is a driver for the IBM and Lenovo ThinkPad laptops. It adds
131 support for Fn-Fx key combinations, Bluetooth control, video 131 support for Fn-Fx key combinations, Bluetooth control, video
132 output switching, ThinkLight control, UltraBay eject and more. 132 output switching, ThinkLight control, UltraBay eject and more.
133 For more information about this driver see <file:Documentation/ibm-acpi.txt> 133 For more information about this driver see
134 and <http://ibm-acpi.sf.net/> . 134 <file:Documentation/thinkpad-acpi.txt> and <http://ibm-acpi.sf.net/> .
135 135
136 If you have an IBM ThinkPad laptop, say Y or M here. 136 This driver was formely known as ibm-acpi.
137 137
138config ACPI_IBM_DOCK 138 If you have an IBM or Lenovo ThinkPad laptop, say Y or M here.
139
140config THINKPAD_ACPI_DOCK
139 bool "Legacy Docking Station Support" 141 bool "Legacy Docking Station Support"
140 depends on ACPI_IBM 142 depends on THINKPAD_ACPI
141 depends on ACPI_DOCK=n 143 depends on ACPI_DOCK=n
142 default n 144 default n
143 ---help--- 145 ---help---
144 Allows the ibm_acpi driver to handle docking station events. 146 Allows the thinkpad_acpi driver to handle docking station events.
145 This support is obsoleted by CONFIG_HOTPLUG_PCI_ACPI. It will 147 This support was made obsolete by the generic ACPI docking station
146 allow locking and removing the laptop from the docking station, 148 support (CONFIG_ACPI_DOCK). It will allow locking and removing the
147 but will not properly connect PCI devices. 149 laptop from the docking station, but will not properly connect PCI
150 devices.
148 151
149 If you are not sure, say N here. 152 If you are not sure, say N here.
150 153
151config ACPI_IBM_BAY 154config THINKPAD_ACPI_BAY
152 bool "Legacy Removable Bay Support" 155 bool "Legacy Removable Bay Support"
153 depends on ACPI_IBM 156 depends on THINKPAD_ACPI
154 default y 157 default y
155 ---help--- 158 ---help---
156 Allows the ibm_acpi driver to handle removable bays. It will allow 159 Allows the thinkpad_acpi driver to handle removable bays. It will
157 disabling the device in the bay, and also generate notifications when 160 eletrically disable the device in the bay, and also generate
158 the bay lever is ejected or inserted. 161 notifications when the bay lever is ejected or inserted.
159 162
160 If you are not sure, say Y here. 163 If you are not sure, say Y here.
161 164
diff --git a/drivers/misc/Makefile b/drivers/misc/Makefile
index ebf4ff2f858e..e32516459138 100644
--- a/drivers/misc/Makefile
+++ b/drivers/misc/Makefile
@@ -12,4 +12,4 @@ obj-$(CONFIG_TIFM_CORE) += tifm_core.o
12obj-$(CONFIG_TIFM_7XX1) += tifm_7xx1.o 12obj-$(CONFIG_TIFM_7XX1) += tifm_7xx1.o
13obj-$(CONFIG_SGI_IOC4) += ioc4.o 13obj-$(CONFIG_SGI_IOC4) += ioc4.o
14obj-$(CONFIG_SONY_LAPTOP) += sony-laptop.o 14obj-$(CONFIG_SONY_LAPTOP) += sony-laptop.o
15obj-$(CONFIG_ACPI_IBM) += thinkpad_acpi.o 15obj-$(CONFIG_THINKPAD_ACPI) += thinkpad_acpi.o
diff --git a/drivers/misc/thinkpad_acpi.c b/drivers/misc/thinkpad_acpi.c
index 2836516ece86..bb789db4d334 100644
--- a/drivers/misc/thinkpad_acpi.c
+++ b/drivers/misc/thinkpad_acpi.c
@@ -1040,7 +1040,7 @@ static int light_write(char *buf)
1040/* don't list other alternatives as we install a notify handler on the 570 */ 1040/* don't list other alternatives as we install a notify handler on the 570 */
1041IBM_HANDLE(pci, root, "\\_SB.PCI"); /* 570 */ 1041IBM_HANDLE(pci, root, "\\_SB.PCI"); /* 570 */
1042 1042
1043#ifdef CONFIG_ACPI_IBM_DOCK 1043#ifdef CONFIG_THINKPAD_ACPI_DOCK
1044 1044
1045IBM_HANDLE(dock, root, "\\_SB.GDCK", /* X30, X31, X40 */ 1045IBM_HANDLE(dock, root, "\\_SB.GDCK", /* X30, X31, X40 */
1046 "\\_SB.PCI0.DOCK", /* 600e/x,770e,770x,A2xm/p,T20-22,X20-21 */ 1046 "\\_SB.PCI0.DOCK", /* 600e/x,770e,770x,A2xm/p,T20-22,X20-21 */
@@ -1111,13 +1111,13 @@ static int dock_write(char *buf)
1111 return 0; 1111 return 0;
1112} 1112}
1113 1113
1114#endif /* CONFIG_ACPI_IBM_DOCK */ 1114#endif /* CONFIG_THINKPAD_ACPI_DOCK */
1115 1115
1116/************************************************************************* 1116/*************************************************************************
1117 * Bay subdriver 1117 * Bay subdriver
1118 */ 1118 */
1119 1119
1120#ifdef CONFIG_ACPI_IBM_BAY 1120#ifdef CONFIG_THINKPAD_ACPI_BAY
1121static int bay_status_supported; 1121static int bay_status_supported;
1122static int bay_status2_supported; 1122static int bay_status2_supported;
1123static int bay_eject_supported; 1123static int bay_eject_supported;
@@ -1208,7 +1208,7 @@ static int bay_write(char *buf)
1208 1208
1209 return 0; 1209 return 0;
1210} 1210}
1211#endif /* CONFIG_ACPI_IBM_BAY */ 1211#endif /* CONFIG_THINKPAD_ACPI_BAY */
1212 1212
1213/************************************************************************* 1213/*************************************************************************
1214 * CMOS subdriver 1214 * CMOS subdriver
@@ -2477,7 +2477,7 @@ static struct ibm_struct ibms[] = {
2477 .read = light_read, 2477 .read = light_read,
2478 .write = light_write, 2478 .write = light_write,
2479 }, 2479 },
2480#ifdef CONFIG_ACPI_IBM_DOCK 2480#ifdef CONFIG_THINKPAD_ACPI_DOCK
2481 { 2481 {
2482 .name = "dock", 2482 .name = "dock",
2483 .read = dock_read, 2483 .read = dock_read,
@@ -2494,7 +2494,7 @@ static struct ibm_struct ibms[] = {
2494 .type = ACPI_SYSTEM_NOTIFY, 2494 .type = ACPI_SYSTEM_NOTIFY,
2495 }, 2495 },
2496#endif 2496#endif
2497#ifdef CONFIG_ACPI_IBM_BAY 2497#ifdef CONFIG_THINKPAD_ACPI_BAY
2498 { 2498 {
2499 .name = "bay", 2499 .name = "bay",
2500 .init = bay_init, 2500 .init = bay_init,
@@ -2504,7 +2504,7 @@ static struct ibm_struct ibms[] = {
2504 .handle = &bay_handle, 2504 .handle = &bay_handle,
2505 .type = ACPI_SYSTEM_NOTIFY, 2505 .type = ACPI_SYSTEM_NOTIFY,
2506 }, 2506 },
2507#endif /* CONFIG_ACPI_IBM_BAY */ 2507#endif /* CONFIG_THINKPAD_ACPI_BAY */
2508 { 2508 {
2509 .name = "cmos", 2509 .name = "cmos",
2510 .read = cmos_read, 2510 .read = cmos_read,
@@ -2686,12 +2686,12 @@ IBM_PARAM(hotkey);
2686IBM_PARAM(bluetooth); 2686IBM_PARAM(bluetooth);
2687IBM_PARAM(video); 2687IBM_PARAM(video);
2688IBM_PARAM(light); 2688IBM_PARAM(light);
2689#ifdef CONFIG_ACPI_IBM_DOCK 2689#ifdef CONFIG_THINKPAD_ACPI_DOCK
2690IBM_PARAM(dock); 2690IBM_PARAM(dock);
2691#endif 2691#endif
2692#ifdef CONFIG_ACPI_IBM_BAY 2692#ifdef CONFIG_THINKPAD_ACPI_BAY
2693IBM_PARAM(bay); 2693IBM_PARAM(bay);
2694#endif /* CONFIG_ACPI_IBM_BAY */ 2694#endif /* CONFIG_THINKPAD_ACPI_BAY */
2695IBM_PARAM(cmos); 2695IBM_PARAM(cmos);
2696IBM_PARAM(led); 2696IBM_PARAM(led);
2697IBM_PARAM(beep); 2697IBM_PARAM(beep);
@@ -2725,18 +2725,18 @@ static int __init acpi_ibm_init(void)
2725 IBM_HANDLE_INIT(hkey); 2725 IBM_HANDLE_INIT(hkey);
2726 IBM_HANDLE_INIT(lght); 2726 IBM_HANDLE_INIT(lght);
2727 IBM_HANDLE_INIT(cmos); 2727 IBM_HANDLE_INIT(cmos);
2728#ifdef CONFIG_ACPI_IBM_DOCK 2728#ifdef CONFIG_THINKPAD_ACPI_DOCK
2729 IBM_HANDLE_INIT(dock); 2729 IBM_HANDLE_INIT(dock);
2730#endif 2730#endif
2731 IBM_HANDLE_INIT(pci); 2731 IBM_HANDLE_INIT(pci);
2732#ifdef CONFIG_ACPI_IBM_BAY 2732#ifdef CONFIG_THINKPAD_ACPI_BAY
2733 IBM_HANDLE_INIT(bay); 2733 IBM_HANDLE_INIT(bay);
2734 if (bay_handle) 2734 if (bay_handle)
2735 IBM_HANDLE_INIT(bay_ej); 2735 IBM_HANDLE_INIT(bay_ej);
2736 IBM_HANDLE_INIT(bay2); 2736 IBM_HANDLE_INIT(bay2);
2737 if (bay2_handle) 2737 if (bay2_handle)
2738 IBM_HANDLE_INIT(bay2_ej); 2738 IBM_HANDLE_INIT(bay2_ej);
2739#endif /* CONFIG_ACPI_IBM_BAY */ 2739#endif /* CONFIG_THINKPAD_ACPI_BAY */
2740 IBM_HANDLE_INIT(beep); 2740 IBM_HANDLE_INIT(beep);
2741 IBM_HANDLE_INIT(ecrd); 2741 IBM_HANDLE_INIT(ecrd);
2742 IBM_HANDLE_INIT(ecwr); 2742 IBM_HANDLE_INIT(ecwr);
diff --git a/drivers/misc/thinkpad_acpi.h b/drivers/misc/thinkpad_acpi.h
index 7ebaaa40e183..ee1b93a2bbdd 100644
--- a/drivers/misc/thinkpad_acpi.h
+++ b/drivers/misc/thinkpad_acpi.h
@@ -163,7 +163,7 @@ static int register_ibmacpi_subdriver(struct ibm_struct *ibm);
163 * Bay subdriver 163 * Bay subdriver
164 */ 164 */
165 165
166#ifdef CONFIG_ACPI_IBM_BAY 166#ifdef CONFIG_THINKPAD_ACPI_BAY
167static int bay_status_supported, bay_eject_supported; 167static int bay_status_supported, bay_eject_supported;
168static int bay_status2_supported, bay_eject2_supported; 168static int bay_status2_supported, bay_eject2_supported;
169 169
@@ -174,7 +174,7 @@ static int bay_init(void);
174static void bay_notify(struct ibm_struct *ibm, u32 event); 174static void bay_notify(struct ibm_struct *ibm, u32 event);
175static int bay_read(char *p); 175static int bay_read(char *p);
176static int bay_write(char *buf); 176static int bay_write(char *buf);
177#endif /* CONFIG_ACPI_IBM_BAY */ 177#endif /* CONFIG_THINKPAD_ACPI_BAY */
178 178
179 179
180/* 180/*
@@ -229,13 +229,13 @@ static int cmos_write(char *buf);
229 */ 229 */
230 230
231static acpi_handle pci_handle; 231static acpi_handle pci_handle;
232#ifdef CONFIG_ACPI_IBM_DOCK 232#ifdef CONFIG_THINKPAD_ACPI_DOCK
233static acpi_handle dock_handle; 233static acpi_handle dock_handle;
234 234
235static void dock_notify(struct ibm_struct *ibm, u32 event); 235static void dock_notify(struct ibm_struct *ibm, u32 event);
236static int dock_read(char *p); 236static int dock_read(char *p);
237static int dock_write(char *buf); 237static int dock_write(char *buf);
238#endif /* CONFIG_ACPI_IBM_DOCK */ 238#endif /* CONFIG_THINKPAD_ACPI_DOCK */
239 239
240 240
241/* 241/*