platform/x86: system76_acpi: Guard System76 EC specific functionality
authorTim Crawford <tcrawford@system76.com>
Wed, 22 Dec 2021 18:51:54 +0000 (11:51 -0700)
committerHans de Goede <hdegoede@redhat.com>
Thu, 23 Dec 2021 16:21:47 +0000 (17:21 +0100)
commitba8cfebd9d9fdc9f5aa960ab388a5e50b017aaa6
treeab62a53270eea6def54ec62cc5c81725f81f6d77
parentc545a70dd2a1211c33de3a09102691145acc5b35
platform/x86: system76_acpi: Guard System76 EC specific functionality

Certain functionality or its implementation in System76 EC firmware may
be different to the proprietary ODM EC firmware. Introduce a new bool,
`has_open_ec`, to guard our specific logic. Detect the use of this by
looking for a custom ACPI method name used in System76 firmware.

Signed-off-by: Tim Crawford <tcrawford@system76.com>
Link: https://lore.kernel.org/r/20211222185154.4560-1-tcrawford@system76.com
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/system76_acpi.c