]> git.baikalelectronics.ru Git - kernel.git/commit
platform/x86: surfacepro3_button: Fix device check
authorMaximilian Luz <luzmaximilian@gmail.com>
Sun, 28 Jul 2019 09:55:48 +0000 (12:55 +0300)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sun, 28 Jul 2019 09:58:40 +0000 (12:58 +0300)
commitec087c4ca00f626ec6a23945981c1c87f30ca3f0
tree00b1ef7c7d3ae5cb52f913857dc850a497f4102b
parent353bc6f2724db88e0570a58c3d416b367f6a4436
platform/x86: surfacepro3_button: Fix device check

Do not use the surfacepro3_button driver on newer Microsoft Surface
models, only use it on the Surface Pro 3 and 4. Newer models (5th, 6th
and possibly future generations) use the same device as the Surface Pro
4 to represent their volume and power buttons (MSHW0040), but their
actual implementation is significantly different. This patch ensures
that the surfacepro3_button driver is only used on the Pro 3 and 4
models, allowing a different driver to bind on other models.

Signed-off-by: Maximilian Luz <luzmaximilian@gmail.com>
Acked-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Acked-by: Chen Yu <yu.c.chen@intel.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/platform/x86/surfacepro3_button.c