Commit 85998248 authored by Henrique de Moraes Holschuh's avatar Henrique de Moraes Holschuh Committed by Len Brown

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: default avatarHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Signed-off-by: default avatarLen Brown <len.brown@intel.com>
parent f21f85de
...@@ -122,40 +122,43 @@ config SONY_LAPTOP ...@@ -122,40 +122,43 @@ config SONY_LAPTOP
Read <file:Documentation/sony-laptop.txt> for more information. Read <file:Documentation/sony-laptop.txt> for more information.
config ACPI_IBM config THINKPAD_ACPI
tristate "IBM ThinkPad Laptop Extras" tristate "ThinkPad ACPI Laptop Extras"
depends on X86 && ACPI depends on X86 && ACPI
select BACKLIGHT_CLASS_DEVICE select BACKLIGHT_CLASS_DEVICE
---help--- ---help---
This is a Linux ACPI driver for the IBM ThinkPad laptops. It adds This is a driver for the IBM and Lenovo ThinkPad laptops. It adds
support for Fn-Fx key combinations, Bluetooth control, video support for Fn-Fx key combinations, Bluetooth control, video
output switching, ThinkLight control, UltraBay eject and more. output switching, ThinkLight control, UltraBay eject and more.
For more information about this driver see <file:Documentation/ibm-acpi.txt> For more information about this driver see
and <http://ibm-acpi.sf.net/> . <file:Documentation/thinkpad-acpi.txt> and <http://ibm-acpi.sf.net/> .
If you have an IBM ThinkPad laptop, say Y or M here. This driver was formely known as ibm-acpi.
config ACPI_IBM_DOCK If you have an IBM or Lenovo ThinkPad laptop, say Y or M here.
config THINKPAD_ACPI_DOCK
bool "Legacy Docking Station Support" bool "Legacy Docking Station Support"
depends on ACPI_IBM depends on THINKPAD_ACPI
depends on ACPI_DOCK=n depends on ACPI_DOCK=n
default n default n
---help--- ---help---
Allows the ibm_acpi driver to handle docking station events. Allows the thinkpad_acpi driver to handle docking station events.
This support is obsoleted by CONFIG_HOTPLUG_PCI_ACPI. It will This support was made obsolete by the generic ACPI docking station
allow locking and removing the laptop from the docking station, support (CONFIG_ACPI_DOCK). It will allow locking and removing the
but will not properly connect PCI devices. laptop from the docking station, but will not properly connect PCI
devices.
If you are not sure, say N here. If you are not sure, say N here.
config ACPI_IBM_BAY config THINKPAD_ACPI_BAY
bool "Legacy Removable Bay Support" bool "Legacy Removable Bay Support"
depends on ACPI_IBM depends on THINKPAD_ACPI
default y default y
---help--- ---help---
Allows the ibm_acpi driver to handle removable bays. It will allow Allows the thinkpad_acpi driver to handle removable bays. It will
disabling the device in the bay, and also generate notifications when eletrically disable the device in the bay, and also generate
the bay lever is ejected or inserted. notifications when the bay lever is ejected or inserted.
If you are not sure, say Y here. If you are not sure, say Y here.
......
...@@ -12,4 +12,4 @@ obj-$(CONFIG_TIFM_CORE) += tifm_core.o ...@@ -12,4 +12,4 @@ obj-$(CONFIG_TIFM_CORE) += tifm_core.o
obj-$(CONFIG_TIFM_7XX1) += tifm_7xx1.o obj-$(CONFIG_TIFM_7XX1) += tifm_7xx1.o
obj-$(CONFIG_SGI_IOC4) += ioc4.o obj-$(CONFIG_SGI_IOC4) += ioc4.o
obj-$(CONFIG_SONY_LAPTOP) += sony-laptop.o obj-$(CONFIG_SONY_LAPTOP) += sony-laptop.o
obj-$(CONFIG_ACPI_IBM) += thinkpad_acpi.o obj-$(CONFIG_THINKPAD_ACPI) += thinkpad_acpi.o
...@@ -1040,7 +1040,7 @@ static int light_write(char *buf) ...@@ -1040,7 +1040,7 @@ static int light_write(char *buf)
/* don't list other alternatives as we install a notify handler on the 570 */ /* don't list other alternatives as we install a notify handler on the 570 */
IBM_HANDLE(pci, root, "\\_SB.PCI"); /* 570 */ IBM_HANDLE(pci, root, "\\_SB.PCI"); /* 570 */
#ifdef CONFIG_ACPI_IBM_DOCK #ifdef CONFIG_THINKPAD_ACPI_DOCK
IBM_HANDLE(dock, root, "\\_SB.GDCK", /* X30, X31, X40 */ IBM_HANDLE(dock, root, "\\_SB.GDCK", /* X30, X31, X40 */
"\\_SB.PCI0.DOCK", /* 600e/x,770e,770x,A2xm/p,T20-22,X20-21 */ "\\_SB.PCI0.DOCK", /* 600e/x,770e,770x,A2xm/p,T20-22,X20-21 */
...@@ -1111,13 +1111,13 @@ static int dock_write(char *buf) ...@@ -1111,13 +1111,13 @@ static int dock_write(char *buf)
return 0; return 0;
} }
#endif /* CONFIG_ACPI_IBM_DOCK */ #endif /* CONFIG_THINKPAD_ACPI_DOCK */
/************************************************************************* /*************************************************************************
* Bay subdriver * Bay subdriver
*/ */
#ifdef CONFIG_ACPI_IBM_BAY #ifdef CONFIG_THINKPAD_ACPI_BAY
static int bay_status_supported; static int bay_status_supported;
static int bay_status2_supported; static int bay_status2_supported;
static int bay_eject_supported; static int bay_eject_supported;
...@@ -1208,7 +1208,7 @@ static int bay_write(char *buf) ...@@ -1208,7 +1208,7 @@ static int bay_write(char *buf)
return 0; return 0;
} }
#endif /* CONFIG_ACPI_IBM_BAY */ #endif /* CONFIG_THINKPAD_ACPI_BAY */
/************************************************************************* /*************************************************************************
* CMOS subdriver * CMOS subdriver
...@@ -2477,7 +2477,7 @@ static struct ibm_struct ibms[] = { ...@@ -2477,7 +2477,7 @@ static struct ibm_struct ibms[] = {
.read = light_read, .read = light_read,
.write = light_write, .write = light_write,
}, },
#ifdef CONFIG_ACPI_IBM_DOCK #ifdef CONFIG_THINKPAD_ACPI_DOCK
{ {
.name = "dock", .name = "dock",
.read = dock_read, .read = dock_read,
...@@ -2494,7 +2494,7 @@ static struct ibm_struct ibms[] = { ...@@ -2494,7 +2494,7 @@ static struct ibm_struct ibms[] = {
.type = ACPI_SYSTEM_NOTIFY, .type = ACPI_SYSTEM_NOTIFY,
}, },
#endif #endif
#ifdef CONFIG_ACPI_IBM_BAY #ifdef CONFIG_THINKPAD_ACPI_BAY
{ {
.name = "bay", .name = "bay",
.init = bay_init, .init = bay_init,
...@@ -2504,7 +2504,7 @@ static struct ibm_struct ibms[] = { ...@@ -2504,7 +2504,7 @@ static struct ibm_struct ibms[] = {
.handle = &bay_handle, .handle = &bay_handle,
.type = ACPI_SYSTEM_NOTIFY, .type = ACPI_SYSTEM_NOTIFY,
}, },
#endif /* CONFIG_ACPI_IBM_BAY */ #endif /* CONFIG_THINKPAD_ACPI_BAY */
{ {
.name = "cmos", .name = "cmos",
.read = cmos_read, .read = cmos_read,
...@@ -2686,12 +2686,12 @@ IBM_PARAM(hotkey); ...@@ -2686,12 +2686,12 @@ IBM_PARAM(hotkey);
IBM_PARAM(bluetooth); IBM_PARAM(bluetooth);
IBM_PARAM(video); IBM_PARAM(video);
IBM_PARAM(light); IBM_PARAM(light);
#ifdef CONFIG_ACPI_IBM_DOCK #ifdef CONFIG_THINKPAD_ACPI_DOCK
IBM_PARAM(dock); IBM_PARAM(dock);
#endif #endif
#ifdef CONFIG_ACPI_IBM_BAY #ifdef CONFIG_THINKPAD_ACPI_BAY
IBM_PARAM(bay); IBM_PARAM(bay);
#endif /* CONFIG_ACPI_IBM_BAY */ #endif /* CONFIG_THINKPAD_ACPI_BAY */
IBM_PARAM(cmos); IBM_PARAM(cmos);
IBM_PARAM(led); IBM_PARAM(led);
IBM_PARAM(beep); IBM_PARAM(beep);
...@@ -2725,18 +2725,18 @@ static int __init acpi_ibm_init(void) ...@@ -2725,18 +2725,18 @@ static int __init acpi_ibm_init(void)
IBM_HANDLE_INIT(hkey); IBM_HANDLE_INIT(hkey);
IBM_HANDLE_INIT(lght); IBM_HANDLE_INIT(lght);
IBM_HANDLE_INIT(cmos); IBM_HANDLE_INIT(cmos);
#ifdef CONFIG_ACPI_IBM_DOCK #ifdef CONFIG_THINKPAD_ACPI_DOCK
IBM_HANDLE_INIT(dock); IBM_HANDLE_INIT(dock);
#endif #endif
IBM_HANDLE_INIT(pci); IBM_HANDLE_INIT(pci);
#ifdef CONFIG_ACPI_IBM_BAY #ifdef CONFIG_THINKPAD_ACPI_BAY
IBM_HANDLE_INIT(bay); IBM_HANDLE_INIT(bay);
if (bay_handle) if (bay_handle)
IBM_HANDLE_INIT(bay_ej); IBM_HANDLE_INIT(bay_ej);
IBM_HANDLE_INIT(bay2); IBM_HANDLE_INIT(bay2);
if (bay2_handle) if (bay2_handle)
IBM_HANDLE_INIT(bay2_ej); IBM_HANDLE_INIT(bay2_ej);
#endif /* CONFIG_ACPI_IBM_BAY */ #endif /* CONFIG_THINKPAD_ACPI_BAY */
IBM_HANDLE_INIT(beep); IBM_HANDLE_INIT(beep);
IBM_HANDLE_INIT(ecrd); IBM_HANDLE_INIT(ecrd);
IBM_HANDLE_INIT(ecwr); IBM_HANDLE_INIT(ecwr);
......
...@@ -163,7 +163,7 @@ static int register_ibmacpi_subdriver(struct ibm_struct *ibm); ...@@ -163,7 +163,7 @@ static int register_ibmacpi_subdriver(struct ibm_struct *ibm);
* Bay subdriver * Bay subdriver
*/ */
#ifdef CONFIG_ACPI_IBM_BAY #ifdef CONFIG_THINKPAD_ACPI_BAY
static int bay_status_supported, bay_eject_supported; static int bay_status_supported, bay_eject_supported;
static int bay_status2_supported, bay_eject2_supported; static int bay_status2_supported, bay_eject2_supported;
...@@ -174,7 +174,7 @@ static int bay_init(void); ...@@ -174,7 +174,7 @@ static int bay_init(void);
static void bay_notify(struct ibm_struct *ibm, u32 event); static void bay_notify(struct ibm_struct *ibm, u32 event);
static int bay_read(char *p); static int bay_read(char *p);
static int bay_write(char *buf); static int bay_write(char *buf);
#endif /* CONFIG_ACPI_IBM_BAY */ #endif /* CONFIG_THINKPAD_ACPI_BAY */
/* /*
...@@ -229,13 +229,13 @@ static int cmos_write(char *buf); ...@@ -229,13 +229,13 @@ static int cmos_write(char *buf);
*/ */
static acpi_handle pci_handle; static acpi_handle pci_handle;
#ifdef CONFIG_ACPI_IBM_DOCK #ifdef CONFIG_THINKPAD_ACPI_DOCK
static acpi_handle dock_handle; static acpi_handle dock_handle;
static void dock_notify(struct ibm_struct *ibm, u32 event); static void dock_notify(struct ibm_struct *ibm, u32 event);
static int dock_read(char *p); static int dock_read(char *p);
static int dock_write(char *buf); static int dock_write(char *buf);
#endif /* CONFIG_ACPI_IBM_DOCK */ #endif /* CONFIG_THINKPAD_ACPI_DOCK */
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment