Commit ccf0904
platform/x86: acer-wmi: setup accelerometer when machine has appropriate notify event
commit 98d610c3739ac354319a6590b915f4624d9151e6 upstream.
The accelerometer event relies on the ACERWMID_EVENT_GUID notify.
So, this patch changes the codes to setup accelerometer input device
when detected ACERWMID_EVENT_GUID. It avoids that the accel input
device created on every Acer machines.
In addition, patch adds a clearly parsing logic of accelerometer hid
to acer_wmi_get_handle_cb callback function. It is positive matching
the "SENR" name with "BST0001" device to avoid non-supported hardware.
Reported-by: Bjørn Mork <bjorn@mork.no>
Cc: Darren Hart <dvhart@infradead.org>
Signed-off-by: Lee, Chun-Yi <jlee@suse.com>
[andy: slightly massage commit message]
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>1 parent 51f8d95 commit ccf0904
1 file changed
Lines changed: 18 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1816 | 1816 | | |
1817 | 1817 | | |
1818 | 1818 | | |
| 1819 | + | |
| 1820 | + | |
1819 | 1821 | | |
1820 | 1822 | | |
1821 | 1823 | | |
| 1824 | + | |
| 1825 | + | |
| 1826 | + | |
| 1827 | + | |
| 1828 | + | |
| 1829 | + | |
| 1830 | + | |
| 1831 | + | |
| 1832 | + | |
| 1833 | + | |
1822 | 1834 | | |
1823 | | - | |
| 1835 | + | |
| 1836 | + | |
1824 | 1837 | | |
1825 | 1838 | | |
1826 | 1839 | | |
| |||
1847 | 1860 | | |
1848 | 1861 | | |
1849 | 1862 | | |
1850 | | - | |
| 1863 | + | |
1851 | 1864 | | |
1852 | 1865 | | |
1853 | 1866 | | |
| |||
2185 | 2198 | | |
2186 | 2199 | | |
2187 | 2200 | | |
| 2201 | + | |
| 2202 | + | |
| 2203 | + | |
2188 | 2204 | | |
2189 | 2205 | | |
2190 | | - | |
2191 | | - | |
2192 | 2206 | | |
2193 | 2207 | | |
2194 | 2208 | | |
| |||
0 commit comments