diff options
author | Henrique de Moraes Holschuh <hmh@hmh.eng.br> | 2007-03-29 00:58:43 -0400 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2007-03-30 15:35:42 -0400 |
commit | 643f12dbb660e139fbaea268f3e3ce4d7d594b8f (patch) | |
tree | 2adeddea6d1a1733da9ad39befc0ec40fdeee1e3 | |
parent | d903ac5455102b13d0e28d6a39f640175fb4cd4d (diff) |
ACPI: thinkpad-acpi: cleanup after rename
Cleanup documentation, driver strings and other misc stuff, now that the
driver is named "thinkpad-acpi".
Signed-off-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
Signed-off-by: Len Brown <len.brown@intel.com>
-rw-r--r-- | Documentation/thinkpad-acpi.txt | 46 | ||||
-rw-r--r-- | drivers/misc/thinkpad_acpi.c | 18 | ||||
-rw-r--r-- | drivers/misc/thinkpad_acpi.h | 21 |
3 files changed, 49 insertions, 36 deletions
diff --git a/Documentation/thinkpad-acpi.txt b/Documentation/thinkpad-acpi.txt index f409f4bbdc47..af18d294cf1a 100644 --- a/Documentation/thinkpad-acpi.txt +++ b/Documentation/thinkpad-acpi.txt | |||
@@ -1,17 +1,22 @@ | |||
1 | IBM ThinkPad ACPI Extras Driver | 1 | ThinkPad ACPI Extras Driver |
2 | 2 | ||
3 | Version 0.13 | 3 | Version 0.14 |
4 | 31 December 2006 | 4 | March 26th, 2007 |
5 | 5 | ||
6 | Borislav Deianov <borislav@users.sf.net> | 6 | Borislav Deianov <borislav@users.sf.net> |
7 | Henrique de Moraes Holschuh <hmh@hmh.eng.br> | 7 | Henrique de Moraes Holschuh <hmh@hmh.eng.br> |
8 | http://ibm-acpi.sf.net/ | 8 | http://ibm-acpi.sf.net/ |
9 | 9 | ||
10 | 10 | ||
11 | This is a Linux ACPI driver for the IBM ThinkPad laptops. It supports | 11 | This is a Linux driver for the IBM and Lenovo ThinkPad laptops. It |
12 | various features of these laptops which are accessible through the | 12 | supports various features of these laptops which are accessible |
13 | ACPI framework but not otherwise fully supported by the generic Linux | 13 | through the ACPI and ACPI EC framework, but not otherwise fully |
14 | ACPI drivers. | 14 | supported by the generic Linux ACPI drivers. |
15 | |||
16 | This driver used to be named ibm-acpi until kernel 2.6.21 and release | ||
17 | 0.13-20070314. It used to be in the drivers/acpi tree, but it was | ||
18 | moved to the drivers/misc tree and renamed to thinkpad-acpi for kernel | ||
19 | 2.6.22, and release 0.14. | ||
15 | 20 | ||
16 | 21 | ||
17 | Status | 22 | Status |
@@ -43,6 +48,8 @@ Please include the following information in your report: | |||
43 | 48 | ||
44 | - ThinkPad model name | 49 | - ThinkPad model name |
45 | - a copy of your DSDT, from /proc/acpi/dsdt | 50 | - a copy of your DSDT, from /proc/acpi/dsdt |
51 | - a copy of the output of dmidecode, with serial numbers | ||
52 | and UUIDs masked off | ||
46 | - which driver features work and which don't | 53 | - which driver features work and which don't |
47 | - the observed behavior of non-working features | 54 | - the observed behavior of non-working features |
48 | 55 | ||
@@ -53,8 +60,9 @@ Installation | |||
53 | ------------ | 60 | ------------ |
54 | 61 | ||
55 | If you are compiling this driver as included in the Linux kernel | 62 | If you are compiling this driver as included in the Linux kernel |
56 | sources, simply enable the CONFIG_ACPI_IBM option (Power Management / | 63 | sources, simply enable the CONFIG_THINKPAD_ACPI option, and optionally |
57 | ACPI / IBM ThinkPad Laptop Extras). | 64 | enable the CONFIG_THINKPAD_ACPI_BAY option if you want the |
65 | thinkpad-specific bay functionality. | ||
58 | 66 | ||
59 | Features | 67 | Features |
60 | -------- | 68 | -------- |
@@ -210,7 +218,7 @@ hot plugging of devices in the Linux ACPI framework. If the laptop was | |||
210 | booted while not in the dock, the following message is shown in the | 218 | booted while not in the dock, the following message is shown in the |
211 | logs: | 219 | logs: |
212 | 220 | ||
213 | Mar 17 01:42:34 aero kernel: ibm_acpi: dock device not present | 221 | Mar 17 01:42:34 aero kernel: thinkpad_acpi: dock device not present |
214 | 222 | ||
215 | In this case, no dock-related events are generated but the dock and | 223 | In this case, no dock-related events are generated but the dock and |
216 | undock commands described below still work. They can be executed | 224 | undock commands described below still work. They can be executed |
@@ -270,7 +278,7 @@ This is due to the current lack of support for hot plugging of devices | |||
270 | in the Linux ACPI framework. If the laptop was booted without the | 278 | in the Linux ACPI framework. If the laptop was booted without the |
271 | UltraBay, the following message is shown in the logs: | 279 | UltraBay, the following message is shown in the logs: |
272 | 280 | ||
273 | Mar 17 01:42:34 aero kernel: ibm_acpi: bay device not present | 281 | Mar 17 01:42:34 aero kernel: thinkpad_acpi: bay device not present |
274 | 282 | ||
275 | In this case, no bay-related events are generated but the eject | 283 | In this case, no bay-related events are generated but the eject |
276 | command described below still works. It can be executed manually or | 284 | command described below still works. It can be executed manually or |
@@ -637,12 +645,12 @@ range. The fan cannot be stopped or started with this command. | |||
637 | 645 | ||
638 | The ThinkPad's ACPI DSDT code will reprogram the fan on its own when | 646 | The ThinkPad's ACPI DSDT code will reprogram the fan on its own when |
639 | certain conditions are met. It will override any fan programming done | 647 | certain conditions are met. It will override any fan programming done |
640 | through ibm-acpi. | 648 | through thinkpad-acpi. |
641 | 649 | ||
642 | The ibm-acpi kernel driver can be programmed to revert the fan level | 650 | The thinkpad-acpi kernel driver can be programmed to revert the fan |
643 | to a safe setting if userspace does not issue one of the fan commands: | 651 | level to a safe setting if userspace does not issue one of the fan |
644 | "enable", "disable", "level" or "watchdog" within a configurable | 652 | commands: "enable", "disable", "level" or "watchdog" within a |
645 | ammount of time. To do this, use the "watchdog" command. | 653 | configurable ammount of time. To do this, use the "watchdog" command. |
646 | 654 | ||
647 | echo 'watchdog <interval>' > /proc/acpi/ibm/fan | 655 | echo 'watchdog <interval>' > /proc/acpi/ibm/fan |
648 | 656 | ||
@@ -686,8 +694,8 @@ separating them with commas, for example: | |||
686 | echo enable,0xffff > /proc/acpi/ibm/hotkey | 694 | echo enable,0xffff > /proc/acpi/ibm/hotkey |
687 | echo lcd_disable,crt_enable > /proc/acpi/ibm/video | 695 | echo lcd_disable,crt_enable > /proc/acpi/ibm/video |
688 | 696 | ||
689 | Commands can also be specified when loading the ibm_acpi module, for | 697 | Commands can also be specified when loading the thinkpad-acpi module, |
690 | example: | 698 | for example: |
691 | 699 | ||
692 | modprobe ibm_acpi hotkey=enable,0xffff video=auto_disable | 700 | modprobe thinkpad_acpi hotkey=enable,0xffff video=auto_disable |
693 | 701 | ||
diff --git a/drivers/misc/thinkpad_acpi.c b/drivers/misc/thinkpad_acpi.c index 90ffc4670a01..ddaedf80d873 100644 --- a/drivers/misc/thinkpad_acpi.c +++ b/drivers/misc/thinkpad_acpi.c | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * ibm_acpi.c - IBM ThinkPad ACPI Extras | 2 | * thinkpad_acpi.c - ThinkPad ACPI Extras |
3 | * | 3 | * |
4 | * | 4 | * |
5 | * Copyright (C) 2004-2005 Borislav Deianov <borislav@users.sf.net> | 5 | * Copyright (C) 2004-2005 Borislav Deianov <borislav@users.sf.net> |
@@ -21,10 +21,12 @@ | |||
21 | * 02110-1301, USA. | 21 | * 02110-1301, USA. |
22 | */ | 22 | */ |
23 | 23 | ||
24 | #define IBM_VERSION "0.13" | 24 | #define IBM_VERSION "0.14" |
25 | 25 | ||
26 | /* | 26 | /* |
27 | * Changelog: | 27 | * Changelog: |
28 | * 2007-03-27 0.14 renamed to thinkpad_acpi and moved to | ||
29 | * drivers/misc. | ||
28 | * | 30 | * |
29 | * 2006-11-22 0.13 new maintainer | 31 | * 2006-11-22 0.13 new maintainer |
30 | * changelog now lives in git commit history, and will | 32 | * changelog now lives in git commit history, and will |
@@ -318,7 +320,9 @@ static int __init setup_notify(struct ibm_struct *ibm) | |||
318 | } | 320 | } |
319 | 321 | ||
320 | acpi_driver_data(ibm->device) = ibm; | 322 | acpi_driver_data(ibm->device) = ibm; |
321 | sprintf(acpi_device_class(ibm->device), "%s/%s", IBM_NAME, ibm->name); | 323 | sprintf(acpi_device_class(ibm->device), "%s/%s", |
324 | IBM_ACPI_EVENT_PREFIX, | ||
325 | ibm->name); | ||
322 | 326 | ||
323 | status = acpi_install_notify_handler(*ibm->handle, ibm->type, | 327 | status = acpi_install_notify_handler(*ibm->handle, ibm->type, |
324 | dispatch_notify, ibm); | 328 | dispatch_notify, ibm); |
@@ -458,7 +462,7 @@ static char *next_cmd(char **cmds) | |||
458 | * ibm-acpi init subdriver | 462 | * ibm-acpi init subdriver |
459 | */ | 463 | */ |
460 | 464 | ||
461 | static int ibm_acpi_driver_init(void) | 465 | static int thinkpad_acpi_driver_init(void) |
462 | { | 466 | { |
463 | printk(IBM_INFO "%s v%s\n", IBM_DESC, IBM_VERSION); | 467 | printk(IBM_INFO "%s v%s\n", IBM_DESC, IBM_VERSION); |
464 | printk(IBM_INFO "%s\n", IBM_URL); | 468 | printk(IBM_INFO "%s\n", IBM_URL); |
@@ -470,7 +474,7 @@ static int ibm_acpi_driver_init(void) | |||
470 | return 0; | 474 | return 0; |
471 | } | 475 | } |
472 | 476 | ||
473 | static int ibm_acpi_driver_read(char *p) | 477 | static int thinkpad_acpi_driver_read(char *p) |
474 | { | 478 | { |
475 | int len = 0; | 479 | int len = 0; |
476 | 480 | ||
@@ -2440,8 +2444,8 @@ static struct proc_dir_entry *proc_dir = NULL; | |||
2440 | static struct ibm_struct ibms[] = { | 2444 | static struct ibm_struct ibms[] = { |
2441 | { | 2445 | { |
2442 | .name = "driver", | 2446 | .name = "driver", |
2443 | .init = ibm_acpi_driver_init, | 2447 | .init = thinkpad_acpi_driver_init, |
2444 | .read = ibm_acpi_driver_read, | 2448 | .read = thinkpad_acpi_driver_read, |
2445 | }, | 2449 | }, |
2446 | { | 2450 | { |
2447 | .name = "hotkey", | 2451 | .name = "hotkey", |
diff --git a/drivers/misc/thinkpad_acpi.h b/drivers/misc/thinkpad_acpi.h index ee1b93a2bbdd..015c02beb203 100644 --- a/drivers/misc/thinkpad_acpi.h +++ b/drivers/misc/thinkpad_acpi.h | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * ibm_acpi.h - IBM ThinkPad ACPI Extras | 2 | * thinkpad_acpi.h - ThinkPad ACPI Extras |
3 | * | 3 | * |
4 | * | 4 | * |
5 | * Copyright (C) 2004-2005 Borislav Deianov <borislav@users.sf.net> | 5 | * Copyright (C) 2004-2005 Borislav Deianov <borislav@users.sf.net> |
@@ -21,8 +21,8 @@ | |||
21 | * 02110-1301, USA. | 21 | * 02110-1301, USA. |
22 | */ | 22 | */ |
23 | 23 | ||
24 | #ifndef __IBM_ACPI_H__ | 24 | #ifndef __THINKPAD_ACPI_H__ |
25 | #define __IBM_ACPI_H__ | 25 | #define __THINKPAD_ACPI_H__ |
26 | 26 | ||
27 | #include <linux/kernel.h> | 27 | #include <linux/kernel.h> |
28 | #include <linux/module.h> | 28 | #include <linux/module.h> |
@@ -47,12 +47,13 @@ | |||
47 | * Main driver | 47 | * Main driver |
48 | */ | 48 | */ |
49 | 49 | ||
50 | #define IBM_NAME "ibm" | 50 | #define IBM_NAME "thinkpad" |
51 | #define IBM_DESC "IBM ThinkPad ACPI Extras" | 51 | #define IBM_DESC "ThinkPad ACPI Extras" |
52 | #define IBM_FILE "ibm_acpi" | 52 | #define IBM_FILE "thinkpad_acpi" |
53 | #define IBM_URL "http://ibm-acpi.sf.net/" | 53 | #define IBM_URL "http://ibm-acpi.sf.net/" |
54 | 54 | ||
55 | #define IBM_DIR IBM_NAME | 55 | #define IBM_DIR "ibm" |
56 | #define IBM_ACPI_EVENT_PREFIX "ibm" | ||
56 | 57 | ||
57 | #define IBM_LOG IBM_FILE ": " | 58 | #define IBM_LOG IBM_FILE ": " |
58 | #define IBM_ERR KERN_ERR IBM_LOG | 59 | #define IBM_ERR KERN_ERR IBM_LOG |
@@ -99,8 +100,8 @@ static void ibm_handle_init(char *name, | |||
99 | 100 | ||
100 | /* procfs support */ | 101 | /* procfs support */ |
101 | static struct proc_dir_entry *proc_dir; | 102 | static struct proc_dir_entry *proc_dir; |
102 | static int ibm_acpi_driver_init(void); | 103 | static int thinkpad_acpi_driver_init(void); |
103 | static int ibm_acpi_driver_read(char *p); | 104 | static int thinkpad_acpi_driver_read(char *p); |
104 | 105 | ||
105 | /* procfs helpers */ | 106 | /* procfs helpers */ |
106 | static int dispatch_read(char *page, char **start, off_t off, int count, | 107 | static int dispatch_read(char *page, char **start, off_t off, int count, |
@@ -434,4 +435,4 @@ static int wan_read(char *p); | |||
434 | static int wan_write(char *buf); | 435 | static int wan_write(char *buf); |
435 | 436 | ||
436 | 437 | ||
437 | #endif /* __IBM_ACPI_H */ | 438 | #endif /* __THINKPAD_ACPI_H */ |