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)
commit64dd243d735655d1ff6bc7450dd5203cf57c9dfb
tree00b1ef7c7d3ae5cb52f913857dc850a497f4102b
parent3b51c44bd6936e86a7180abd9aebc4387a479253
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