OSDN Git Service

platform/x86: ideapad-laptop: Revert "check for touchpad support in _CFG"
authorEray Orçunus <erayorcunus@gmail.com>
Sat, 29 Oct 2022 12:03:06 +0000 (15:03 +0300)
committerHans de Goede <hdegoede@redhat.com>
Wed, 16 Nov 2022 07:48:19 +0000 (08:48 +0100)
commit5831882880e9a1749553e78f9d8369fe33116aaf
tree6ddc9f4df07c362f2a3645600c087e6dde3a67eb
parentc7891884a55effcf3e54e25835ef9fac39ef48f3
platform/x86: ideapad-laptop: Revert "check for touchpad support in _CFG"

Last 8 bit of _CFG started being used in later IdeaPads, thus 30th bit
doesn't always show whether device supports touchpad or touchpad switch.
Remove checking bit 30 of _CFG, so older IdeaPads like S10-3 can switch
touchpad again via touchpad attribute.

This reverts commit b3ed1b7fe378 ("platform/x86: ideapad-laptop: check for
touchpad support in _CFG").

Signed-off-by: Eray Orçunus <erayorcunus@gmail.com>
Acked-by: Ike Panhc <ike.pan@canonical.com>
Link: https://lore.kernel.org/r/20221029120311.11152-2-erayorcunus@gmail.com
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/ideapad-laptop.c