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:26:28 +0000 (17:26 +0100)
commitc4499272566d677075c6a84f46baeb826a6a7182
tree720e78d84aefa0c1097301de254df1969f78e98c
parenteb66fb03a727cde0ab9b1a3858de55c26f3007da
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