linux-stable/drivers/platform
Lee, Chun-Yi c5a92c4b4b platform/x86: acer-wmi: setup accelerometer when ACPI device was found
[ Upstream commit f9ac89f5ad ]

The 98d610c373 patch was introduced since v4.11-rc1 that it causes
that the accelerometer input device will not be created on workable
machines because the HID string comparing logic is wrong.

And, the patch doesn't prevent that the accelerometer input device
be created on the machines that have no BST0001. That's because
the acpi_get_devices() returns success even it didn't find any
match device.

This patch fixed the HID string comparing logic of BST0001 device.
And, it also makes sure that the acpi_get_devices() returns
acpi_handle for BST0001.

Fixes: 98d610c373 ("acer-wmi: setup accelerometer when machine has appropriate notify event")
Reference: https://bugzilla.kernel.org/show_bug.cgi?id=193761
Reported-by: Samuel Sieb <samuel-kbugs@sieb.net>
Signed-off-by: "Lee, Chun-Yi" <jlee@suse.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2018-11-10 07:42:45 -08:00
..
chrome platform/chrome: cros_ec_lpc: remove redundant pointer request 2018-06-06 16:44:34 +02:00
goldfish goldfish: Sanitize the broken interrupt handler 2017-02-26 11:10:52 +01:00
mips
olpc
x86 platform/x86: acer-wmi: setup accelerometer when ACPI device was found 2018-11-10 07:42:45 -08:00
Kconfig
Makefile