platform/x86: ideapad-laptop: support for more special keys in WMI
authorPhilipp Jungkamp <p.jungkamp@gmx.net>
Wed, 16 Nov 2022 11:06:47 +0000 (12:06 +0100)
committerHans de Goede <hdegoede@redhat.com>
Wed, 16 Nov 2022 14:44:38 +0000 (15:44 +0100)
commitf32e02417614d3588a3954dab2a70320c43d1010
treeae12fab58248d82e94edc04cde4b6c0bec5cba4d
parentbe5dd7d8359de9fb22115a63f09981cdf689db4f
platform/x86: ideapad-laptop: support for more special keys in WMI

The event data of the WMI event 0xD0, which is assumed to be the
fn_lock, is used to indicate several special keys on newer Yoga 7/9
laptops.

The notify_id 0xD0 is non-unique in the DSDT of the Yoga 9 14IAP7, this
causes wmi_get_event_data() to report wrong values.
Port the ideapad-laptop WMI code to the wmi bus infrastructure which
does not suffer from the shortcomings of wmi_get_event_data().

Signed-off-by: Philipp Jungkamp <p.jungkamp@gmx.net>
Link: https://lore.kernel.org/r/20221116110647.3438-1-p.jungkamp@gmx.net
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/ideapad-laptop.c