This series contains patches that aim to bring more consistency to the code; add keyboard backlight control support; add "always on USB charging" control support. Furthermore, commit 7f363145992cebf4ea760447f1cfdf6f81459683 ("platform/x86: ideapad-laptop: Switch touchpad attribute to be RO") is reverted since it made it impossible to disable/enable the touchpad via the ideapad-laptop module and on some devices the method implemented in the module works correctly to disable/enable the touchpad. Changes in v2: - rebase on commit d69cd7eea93eb59a93061beeb43e4f5e19afc4ea ("platform/x86: ideapad-laptop: Disable touchpad_switch for ELAN0634") - [03] change how the #include directives are grouped and sorted - [13] change the order of members in the `features` struct in `struct ideapad_private` to roughly match that of the `ideapad_attributes` array - [15] change `CFG_CAP_TOUCHPAD_BIT` to 30 as it is the correct value instead of 31 that appeared in the previous version - [19] remove extra whitespaces in the ACPI device id table - [21] select NEW_LEDS and LEDS_CLASS in Kconfig - [21] check for keyboard backlight support in `ideapad_check_features()` not separately in `ideapad_kbd_bl_init()` - [24] change KernelVersion of the `usb_charging` attribute to 5.12 History: - v1: https://lore.kernel.org/platform-driver-x86/20201216013857.360987-1-pobrn@xxxxxxxxxxxxxx/ Barnabás Pőcze (24): platform/x86: ideapad-laptop: remove unnecessary dev_set_drvdata() call platform/x86: ideapad-laptop: use appropriately typed variable to store the return value of ACPI methods platform/x86: ideapad-laptop: sort includes lexicographically platform/x86: ideapad-laptop: use sysfs_emit() platform/x86: ideapad-laptop: use for_each_set_bit() helper to simplify event processing platform/x86: ideapad-laptop: use msecs_to_jiffies() helper instead of hand-crafted formula platform/x86: ideapad-laptop: use dev_{err,warn} or appropriate variant to display log messages platform/x86: ideapad-laptop: convert ACPI helpers to return -EIO in case of failure platform/x86: ideapad-laptop: always propagate error codes from device attributes' show() callback platform/x86: ideapad-laptop: misc. device attribute changes platform/x86: ideapad-laptop: group and separate (un)related constants into enums platform/x86: ideapad-laptop: rework and create new ACPI helpers platform/x86: ideapad-laptop: rework is_visible() logic platform/x86: ideapad-laptop: check for Fn-lock support in HALS platform/x86: ideapad-laptop: check for touchpad support in _CFG platform/x86: ideapad-laptop: change 'status' debugfs file format platform/x86: ideapad-laptop: change 'cfg' debugfs file format Revert "platform/x86: ideapad-laptop: Switch touchpad attribute to be RO" platform/x86: ideapad-laptop: fix checkpatch warnings, more consistent style platform/x86: ideapad-laptop: send notification about touchpad state change to sysfs platform/x86: ideapad-laptop: add keyboard backlight control support platform/x86: ideapad-laptop: add "always on USB charging" control support Documentation/ABI: sysfs-platform-ideapad-laptop: update device attribute paths Documentation/ABI: sysfs-platform-ideapad-laptop: conservation_mode and usb_charging .../ABI/testing/sysfs-platform-ideapad-laptop | 26 +- drivers/platform/x86/Kconfig | 2 + drivers/platform/x86/ideapad-laptop.c | 1063 +++++++++++------ 3 files changed, 702 insertions(+), 389 deletions(-) -- 2.30.0