]> git.baikalelectronics.ru Git - kernel.git/commit
platform/x86: thinkpad_acpi: correct palmsensor error checking
authorMark Pearson <markpearson@lenovo.com>
Wed, 30 Dec 2020 02:47:26 +0000 (21:47 -0500)
committerHans de Goede <hdegoede@redhat.com>
Mon, 4 Jan 2021 14:55:30 +0000 (15:55 +0100)
commit105239c1e02fd5411df04ac7ddc18e388a6887a7
tree0f9bb92e47c5b7e61110d11ecf564d9c596bca2f
parentf224c68376f27c95804e7c415b2810f3e65f4809
platform/x86: thinkpad_acpi: correct palmsensor error checking

The previous commit adding functionality for the palm sensor had a
mistake which meant the error conditions on initialisation was not checked
correctly. On some older platforms this meant that if the sensor wasn't
available an error would be returned and the driver would fail to load.

This commit corrects the error condition. Many thanks to Mario Oenning
for reporting and determining the issue

Signed-off-by: Mark Pearson <markpearson@lenovo.com>
Link: https://lore.kernel.org/r/20201230024726.7861-1-markpearson@lenovo.com
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/thinkpad_acpi.c