]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3401480f21249c21e6436e5902db69da142ab052
treeb3cf170c9b63b1a6a67f83a2c2174b0f8ee56de6
parente95c02bc1111b94965a83f2c5e430aea5b5d5754
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