projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
064cbc4
)
platform/x86: thinkpad_acpi: Accept flat mode for type 4 multi mode status
author
Benjamin Berg
<
[email protected]
>
Tue, 14 Nov 2017 16:14:14 +0000
(17:14 +0100)
committer
Andy Shevchenko
<
[email protected]
>
Thu, 21 Dec 2017 12:56:27 +0000
(14:56 +0200)
On the X1 Yoga 2nd Generation and most likely other notebooks the FLAT
mode is reported. Decode it correctly rather than warning about an
unexpected multi mode status to be reported.
Signed-off-by: Benjamin Berg <
[email protected]
>
Cc: Peter FP1 Zhang <
[email protected]
Cc: Lyude <
[email protected]
>
Reviewed-by: Lyude Paul <
[email protected]
>
Signed-off-by: Andy Shevchenko <
[email protected]
>
drivers/platform/x86/thinkpad_acpi.c
patch
|
blob
|
history
diff --git
a/drivers/platform/x86/thinkpad_acpi.c
b/drivers/platform/x86/thinkpad_acpi.c
index 117be48ff4de9a3a70df898565cf6495e92d7ddd..7dcbd97710a9a678e399d0adee6e5113d44ef193 100644
(file)
--- a/
drivers/platform/x86/thinkpad_acpi.c
+++ b/
drivers/platform/x86/thinkpad_acpi.c
@@
-2113,12
+2113,10
@@
static int hotkey_gmms_get_tablet_mode(int s, int *has_tablet_mode)
TP_ACPI_MULTI_MODE_FLAT;
break;
case 4:
- valid_modes = TP_ACPI_MULTI_MODE_LAPTOP |
- TP_ACPI_MULTI_MODE_TABLET |
- TP_ACPI_MULTI_MODE_STAND |
- TP_ACPI_MULTI_MODE_TENT;
- break;
case 5:
+ /* In mode 4, FLAT is not specified as a valid mode. However,
+ * it can be seen at least on the X1 Yoga 2nd Generation.
+ */
valid_modes = TP_ACPI_MULTI_MODE_LAPTOP |
TP_ACPI_MULTI_MODE_FLAT |
TP_ACPI_MULTI_MODE_TABLET |