File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change 15
15
#include <linux/platform_device.h>
16
16
#include <linux/suspend.h>
17
17
18
- /* Returned when NOT in tablet mode on some HP Stream x360 11 models */
19
- #define VGBS_TABLET_MODE_FLAG_ALT 0x10
20
18
/* When NOT in tablet mode, VGBS returns with the flag 0x40 */
21
- #define VGBS_TABLET_MODE_FLAG 0x40
22
- #define VGBS_DOCK_MODE_FLAG 0x80
23
-
24
- #define VGBS_TABLET_MODE_FLAGS (VGBS_TABLET_MODE_FLAG | VGBS_TABLET_MODE_FLAG_ALT)
19
+ #define TABLET_MODE_FLAG 0x40
20
+ #define DOCK_MODE_FLAG 0x80
25
21
26
22
MODULE_LICENSE ("GPL" );
27
23
MODULE_AUTHOR ("AceLan Kao" );
@@ -76,9 +72,9 @@ static void detect_tablet_mode(struct platform_device *device)
76
72
if (ACPI_FAILURE (status ))
77
73
return ;
78
74
79
- m = !(vgbs & VGBS_TABLET_MODE_FLAGS );
75
+ m = !(vgbs & TABLET_MODE_FLAG );
80
76
input_report_switch (priv -> input_dev , SW_TABLET_MODE , m );
81
- m = (vgbs & VGBS_DOCK_MODE_FLAG ) ? 1 : 0 ;
77
+ m = (vgbs & DOCK_MODE_FLAG ) ? 1 : 0 ;
82
78
input_report_switch (priv -> input_dev , SW_DOCK , m );
83
79
}
84
80
You can’t perform that action at this time.
0 commit comments