Add patches accepted for 2.6.23-rc1
[linux-2.6/linux-acpi-2.6/ibm-acpi-2.6.git] / releases / upstream / 2.6.23-rc1 / 0007-ACPI-thinkpad-acpi-checkpoint-sysfs-interface-vers.patch
blob4019a0a93256ead27e1ccf3861ee7e75b6c5019f
1 From 94b08713186cc47a5c367a866cc0a0a762721455 Mon Sep 17 00:00:00 2001
2 From: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
3 Date: Wed, 18 Jul 2007 23:45:32 -0300
4 Subject: ACPI: thinkpad-acpi: checkpoint sysfs interface version due to hotkey
6 The change in the size of the hotkey mask, the hability to report the keys
7 that use the higher bits, and the addition of the hotkey_radio_sw attribute
8 are important enough features to warrant increasing the minor field of the
9 sysfs interface version.
11 Also, document a bit better how and when the thinkpad-acpi sysfs interface
12 version will be updated.
14 Signed-off-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
15 Signed-off-by: Len Brown <len.brown@intel.com>
16 ---
17 Documentation/thinkpad-acpi.txt | 17 +++++++++++++++++
18 drivers/misc/thinkpad_acpi.c | 2 +-
19 2 files changed, 18 insertions(+), 1 deletions(-)
21 diff --git a/Documentation/thinkpad-acpi.txt b/Documentation/thinkpad-acpi.txt
22 index fe26e50..7a06a27 100644
23 --- a/Documentation/thinkpad-acpi.txt
24 +++ b/Documentation/thinkpad-acpi.txt
25 @@ -134,6 +134,21 @@ end of this document. Changes to the sysfs interface done by the kernel
26 subsystems are not documented here, nor are they tracked by this
27 attribute.
29 +Changes to the thinkpad-acpi sysfs interface are only considered
30 +non-experimental when they are submitted to Linux mainline, at which
31 +point the changes in this interface are documented and interface_version
32 +may be updated. If you are using any thinkpad-acpi features not yet
33 +sent to mainline for merging, you do so on your own risk: these features
34 +may disappear, or be implemented in a different and incompatible way by
35 +the time they are merged in Linux mainline.
37 +Changes that are backwards-compatible by nature (e.g. the addition of
38 +attributes that do not change the way the other attributes work) do not
39 +always warrant an update of interface_version. Therefore, one must
40 +expect that an attribute might not be there, and deal with it properly
41 +(an attribute not being there *is* a valid way to make it clear that a
42 +feature is not available in sysfs).
44 Hot keys
45 --------
47 @@ -989,3 +1004,5 @@ Sysfs interface changelog:
49 0x000100: Initial sysfs support, as a single platform driver and
50 device.
51 +0x000200: Hot key support for 32 hot keys, and radio slider switch
52 + support.
53 diff --git a/drivers/misc/thinkpad_acpi.c b/drivers/misc/thinkpad_acpi.c
54 index 3cf37bb..4d71893 100644
55 --- a/drivers/misc/thinkpad_acpi.c
56 +++ b/drivers/misc/thinkpad_acpi.c
57 @@ -22,7 +22,7 @@
60 #define IBM_VERSION "0.14"
61 -#define TPACPI_SYSFS_VERSION 0x000100
62 +#define TPACPI_SYSFS_VERSION 0x000200
65 * Changelog:
66 --
67 1.5.2.1