platform/x86: Move ideapad ACPI helpers to a new header
authorAndrew Kallmeyer <kallmeyeras@gmail.com>
Wed, 29 Mar 2023 01:45:58 +0000 (18:45 -0700)
committerHans de Goede <hdegoede@redhat.com>
Thu, 6 Apr 2023 10:22:30 +0000 (12:22 +0200)
commit0de0ab9a659a419d1aa9c2516887e95a51455da0
tree54af4282c1a23f19fd4135cdb6296521c9565ef8
parent710ddfbfda939b84794fa3912047bbc6754cbddc
platform/x86: Move ideapad ACPI helpers to a new header

These functions will be used by a driver written by Gergo Koteles to
detect the tablet mode switch in Lenovo Yoga laptops. These changes were
discussed in review of that patch.

This is the minimal set of functions needed in that driver, there are
several more small functions left in the ACPI Helpers section in
ideapad-laptop.c. The only change is the functions are now marked inline
as requested in the review comments.

Signed-off-by: Andrew Kallmeyer <kallmeyeras@gmail.com>
Link: https://lore.kernel.org/r/20221004214332.35934-1-soyer@irl.hu/
Tested-by: André Apitzsch <git@apitzsch.eu>
Link: https://lore.kernel.org/r/20230329014559.44494-2-kallmeyeras@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
drivers/platform/x86/ideapad-laptop.h [new file with mode: 0644]