On Sun, Jan 10, 2016 at 05:11:35PM +0100, Mark Kettenis wrote: > > Date: Sun, 10 Jan 2016 16:47:05 +0100 > > From: Stefan Sperling <[email protected]> > > > > Add events which occur when docking/undocking a tablet observed > > on the Helix 2. > > You have a tabs vs. spaces inconsistency, but otherthan that, this is ok > > > Index: acpithinkpad.c > > =================================================================== > > RCS file: /cvs/src/sys/dev/acpi/acpithinkpad.c,v > > retrieving revision 1.50 > > diff -u -p -r1.50 acpithinkpad.c > > --- acpithinkpad.c 17 Dec 2015 12:17:14 -0000 1.50 > > +++ acpithinkpad.c 10 Jan 2016 15:41:37 -0000 > > @@ -84,6 +84,8 @@ > > #define THINKPAD_ADAPTIVE_BACK 0x1111 > > #define THINKPAD_PORT_REPL_DOCKED 0x4010 > > #define THINKPAD_PORT_REPL_UNDOCKED 0x4011 > > +#define THINKPAD_TABLET_DOCKED 0x4012 > > +#define THINKPAD_TABLET_UNDOCKED 0x4013 > > #define THINKPAD_LID_OPEN 0x5001 > > #define THINKPAD_LID_CLOSED 0x5002 > > #define THINKPAD_TABLET_SCREEN_NORMAL 0x500a > > @@ -437,6 +439,8 @@ thinkpad_hotkey(struct aml_node *node, i > > case THINKPAD_LID_OPEN: > > case THINKPAD_PORT_REPL_DOCKED: > > case THINKPAD_PORT_REPL_UNDOCKED: > > + case THINKPAD_TABLET_DOCKED: > > + case THINKPAD_TABLET_UNDOCKED: > > case THINKPAD_POWER_CHANGED: > > case THINKPAD_SWITCH_WIRELESS: > > case THINKPAD_TABLET_PEN_INSERTED: > > > > >
go for it if not already committed, with kettenis' notes above.
