Input: axp20x-pek - Use new soc_intel_is_cht() helper
authorHans de Goede <hdegoede@redhat.com>
Mon, 18 Oct 2021 14:33:24 +0000 (16:33 +0200)
committerHans de Goede <hdegoede@redhat.com>
Tue, 19 Oct 2021 15:31:24 +0000 (17:31 +0200)
commit5ecc1e94782218b77b9bf7ae8ac53990f5ca4a7a
treeb3cf170c9b63b1a6a67f83a2c2174b0f8ee56de6
parent693841b74262f1c0483d8e72f83a97999e923433
Input: axp20x-pek - Use new soc_intel_is_cht() helper

Use the new soc_intel_is_cht() helper to find out if we are running
on a CHT device rather then checking the ACPI _HRV field.

This is more reliable (some CHT devices have been found where the _HRV
for the PMIC is 2 rather then 3) and leads to a nice cleanup.

Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Acked-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20211018143324.296961-4-hdegoede@redhat.com
drivers/input/misc/axp20x-pek.c