]> git.baikalelectronics.ru Git - kernel.git/commit
platform/x86: ideapad-laptop: rework is_visible() logic
authorBarnabás Pőcze <pobrn@protonmail.com>
Wed, 3 Feb 2021 21:56:10 +0000 (21:56 +0000)
committerHans de Goede <hdegoede@redhat.com>
Thu, 4 Feb 2021 09:21:14 +0000 (10:21 +0100)
commitff467bae5f03038154a77289b679b276d6bf5c4d
tree9eb5c3ad826656812a8d62e9610549eae5178daa
parent6f15bda471f6138716d9d3f2527f8b8a3002b1cf
platform/x86: ideapad-laptop: rework is_visible() logic

Store the supported features in the driver private
data, and modify the is_visible() callback to use it,
and create ideapad_check_features() to populate it.

Signed-off-by: Barnabás Pőcze <pobrn@protonmail.com>
Link: https://lore.kernel.org/r/20210203215403.290792-19-pobrn@protonmail.com
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/ideapad-laptop.c