platform/x86: intel-vbtn: Only activate tablet mode switch on 2-in-1's
authorMario Limonciello <mario.limonciello@dell.com>
Thu, 22 Feb 2018 19:58:42 +0000 (13:58 -0600)
committerDarren Hart (VMware) <dvhart@infradead.org>
Sun, 25 Feb 2018 16:02:40 +0000 (08:02 -0800)
commitde9647efeaa9f4e8b08c002e09757fd9c55ff901
tree39e6b4ca8d8623231933fc65553e47357e51fb9b
parent91ab883eb21325ad80f3473633f794c78ac87f51
platform/x86: intel-vbtn: Only activate tablet mode switch on 2-in-1's

Some laptops such as the XPS 9360 support the intel-vbtn INT33D6
interface but don't initialize the bit that intel-vbtn uses to
represent switching tablet mode.

By running this only on real 2-in-1's it shouldn't cause false
positives.

Fixes: 30323fb6d5 ("Support tablet mode switch")
Reported-by: Jeremy Cline <jeremy@jcline.org>
Signed-off-by: Mario Limonciello <mario.limonciello@dell.com>
Tested-by: Jeremy Cline <jeremy@jcline.org>
Tested-by: Darren Hart (VMware) <dvhart@infradead.org>
Signed-off-by: Darren Hart (VMware) <dvhart@infradead.org>
drivers/platform/x86/intel-vbtn.c