]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7070e94741f2e678c9c835529ad0f7bc0857ef7c
tree39e6b4ca8d8623231933fc65553e47357e51fb9b
parent22824f5281ac26627bdbd95a71590b265bd292da
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: 5280f2505e ("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