]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
platform/x86: intel-vbtn: Support tablet mode switch
authorMarco Martin <notmart@gmail.com>
Mon, 29 Jan 2018 20:27:43 +0000 (21:27 +0100)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 1 Feb 2018 13:26:11 +0000 (15:26 +0200)
commit30323fb6d552c41997baca5292bf7001366cab57
treed01ac148e778f9a6e938b582c8f6c341721ac77f
parent9862b43624a5450a097cc4122732857b869dbbca
platform/x86: intel-vbtn: Support tablet mode switch

On some laptop like the Dell Inspiron 7000 series tablet mode switch
implemented in Intel ACPI, the events to enter and exit the tablet mode
are 0xCC and 0xCD

This initializes the tablet/laptop mode at the correct value
if the system booted in tablet mode (or the intel-vbtn module
loaded with the device in tablet mode)

Cc: platform-driver-x86@vger.kernel.org
Cc: Matthew Garrett <mjg59@srcf.ucam.org>
Cc: "Pali Rohár" <pali.rohar@gmail.com>
Cc: Darren Hart <dvhart@infradead.org>
Cc: Mario Limonciello <mario_limonciello@dell.com>
Cc: Andy Shevchenko <andy@infradead.org>
Cc: Stefan Brüns<stefan.bruens@rwth-aachen.de>
Signed-off-by: Marco Martin <notmart@gmail.com>
Reviewed-by: Mario Limonciello <mario.limonciello@dell.com>
Acked-by: Pali Rohár <pali.rohar@gmail.com>
[andy: fixed style of comments, indentation, and massaged commit message]
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/platform/x86/intel-vbtn.c