From: Matthew Garrett Date: Mon, 1 Jun 2009 14:25:45 +0000 (+0100) Subject: hp-wmi: Add support for reporting tablet state X-Git-Tag: v2.6.31-rc1~12^2~9^18 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=871043bc463e7d191e7b5b00436a8852921dd833;p=pandora-kernel.git hp-wmi: Add support for reporting tablet state HP tablets send a WMI event when a tablet state change occurs, but use the same method as is used for reporting docking and undocking. The same query is used to obtain the state of the hardware. Bit 0 indicates the docking state, while bit 2 indicates the tablet state. This patch breaks these out and sends separate input events for tablet and dock state changes. An additional sysfs file is added to report the tablet state. Signed-off-by: Matthew Garrett Signed-off-by: Len Brown --- Reading git-diff-tree failed