android_kernel_lge_bullhead/drivers/platform/x86
Lee, Chun-Yi c9b40c2b9b platform/x86: acer-wmi: setup accelerometer when ACPI device was found
commit f9ac89f5ad613b462339e845aeb8494646fd9be2 upstream.

The 98d610c3739a 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: 98d610c3739a ("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: Willy Tarreau <w@1wt.eu>
2017-06-20 14:04:46 +02:00
..
Kconfig pvpanic: pvpanic device driver 2013-05-08 19:59:52 -04:00
Makefile pvpanic: pvpanic device driver 2013-05-08 19:59:52 -04:00
acer-wmi.c platform/x86: acer-wmi: setup accelerometer when ACPI device was found 2017-06-20 14:04:46 +02:00
acerhdf.c Drivers: platform: x86: remove __dev* attributes. 2013-01-03 15:57:03 -08:00
amilo-rfkill.c Drivers: platform: x86: remove __dev* attributes. 2013-01-03 15:57:03 -08:00
apple-gmux.c Drivers: platform: x86: remove __dev* attributes. 2013-01-03 15:57:03 -08:00
asus-laptop.c asus-laptop: always report brightness key events 2013-02-27 08:30:38 -05:00
asus-nb-wmi.c asus-nb-wmi: set wapf=4 for ASUSTeK COMPUTER INC. X75A 2013-05-08 19:59:52 -04:00
asus-wmi.c asus-wmi: Fix unused function build warning 2013-02-27 08:30:42 -05:00
asus-wmi.h asus-wmi: always report brightness key events 2013-02-27 08:30:37 -05:00
chromeos_laptop.c Platform: x86: chromeos_laptop : Add basic platform data for atmel devices 2013-03-08 16:03:29 -08:00
classmate-laptop.c ACPI: Remove useless type argument of driver .remove() operation 2013-01-26 00:37:24 +01:00
compal-laptop.c Drivers: platform: x86: remove __dev* attributes. 2013-01-03 15:57:03 -08:00
dell-laptop.c dell-laptop: Fix krealloc() misuse in parse_da_table() 2013-05-08 19:59:44 -04:00
dell-wmi-aio.c dell: add new dell WMI format for the AIO machines 2013-05-08 19:59:43 -04:00
dell-wmi.c dell-wmi: Fix access out of memory 2014-11-21 09:22:55 -08:00
eeepc-laptop.c ACPI and power management updates for 3.9-rc1 2013-02-20 11:26:56 -08:00
eeepc-wmi.c asus-wmi: always report brightness key events 2013-02-27 08:30:37 -05:00
fujitsu-laptop.c ACPI: Remove useless type argument of driver .remove() operation 2013-01-26 00:37:24 +01:00
fujitsu-tablet.c ACPI: Remove useless type argument of driver .remove() operation 2013-01-26 00:37:24 +01:00
hdaps.c platform / x86 / PM: Fix unused function warnings for CONFIG_PM_SLEEP 2012-08-10 14:29:43 +02:00
hp-wmi.c hp-wmi: Fix wifi cannot be hard-unblocked 2016-08-27 11:40:36 +02:00
hp_accel.c hp_accel: Add support for HP ZBook 15 2015-01-27 07:52:31 -08:00
ibm_rtl.c efi: Make 'efi_enabled' a function to query EFI facilities 2013-01-30 11:51:59 -08:00
ideapad-laptop.c Add support for fan button on Ideapad Z580 2013-05-08 20:00:50 -04:00
intel_ips.c Power management updates for 3.6 2012-07-22 13:36:52 -07:00
intel_ips.h
intel_menlow.c ACPI: Remove useless type argument of driver .remove() operation 2013-01-26 00:37:24 +01:00
intel_mid_powerbtn.c platform/x86: intel_mid_powerbtn: Set IRQ_ONESHOT 2017-06-08 00:46:57 +02:00
intel_mid_thermal.c Drivers: platform: x86: remove __dev* attributes. 2013-01-03 15:57:03 -08:00
intel_oaktrail.c Drivers: platform: x86: remove __dev* attributes. 2013-01-03 15:57:03 -08:00
intel_pmic_gpio.c Drivers: platform: x86: remove __dev* attributes. 2013-01-03 15:57:03 -08:00
intel_scu_ipc.c intel_scu_ipc: Remove Moorestown support 2012-03-20 12:02:02 -04:00
intel_scu_ipcutil.c intel_scu_ipcutil: underflow in scu_reg_access() 2016-02-25 11:57:49 -08:00
msi-laptop.c msi-laptop: Disable brightness control for new EC 2013-02-24 14:49:53 -08:00
msi-wmi.c msi-wmi: Add MSI Wind support 2013-02-24 14:49:54 -08:00
mxm-wmi.c mxm/wmi: add MXMX interface entry point. 2011-05-09 11:40:38 +10:00
panasonic-laptop.c ACPI: Remove useless type argument of driver .remove() operation 2013-01-26 00:37:24 +01:00
pvpanic.c pvpanic: pvpanic device driver 2013-05-08 19:59:52 -04:00
samsung-laptop.c samsung-laptop: Disable on EFI hardware 2013-01-30 11:52:11 -08:00
samsung-q10.c drivers: platform: x86: Use PTR_RET function 2013-05-08 19:59:44 -04:00
sony-laptop.c sony-laptop: SVS151290S kbd backlight and gfx switch support 2013-05-08 19:59:44 -04:00
tc1100-wmi.c Drivers: platform: x86: remove __dev* attributes. 2013-01-03 15:57:03 -08:00
thinkpad_acpi.c Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs 2013-05-01 17:51:54 -07:00
topstar-laptop.c ACPI: Remove useless type argument of driver .remove() operation 2013-01-26 00:37:24 +01:00
toshiba_acpi.c procfs: new helper - PDE_DATA(inode) 2013-04-09 14:13:32 -04:00
toshiba_bluetooth.c ACPI: Remove useless type argument of driver .remove() operation 2013-01-26 00:37:24 +01:00
wmi.c ACPI: Remove useless type argument of driver .remove() operation 2013-01-26 00:37:24 +01:00
xo1-rfkill.c Drivers: platform: x86: remove __dev* attributes. 2013-01-03 15:57:03 -08:00
xo15-ebook.c ACPI: Remove useless type argument of driver .remove() operation 2013-01-26 00:37:24 +01:00