]> git.baikalelectronics.ru Git - 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)
commit6cdf42c01f097e00e6121f71706717f65f7799a7
treed01ac148e778f9a6e938b582c8f6c341721ac77f
parentf9940a1d6f2e47712c735674c488dae854812919
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