|
|
@@ -272,11 +272,12 @@ static bool axp20x_pek_should_register_input(struct axp20x_pek *axp20x_pek,
|
|
|
|
|
|
/*
|
|
|
* On Cherry Trail platforms (hrv == 3), do not register the
|
|
|
- * input device if there is an "INTCFD9" gpio
|
|
|
+ * input device if there is an "INTCFD9" or "ACPI0011" gpio
|
|
|
* button ACPI device, as that handles the power button too,
|
|
|
* and otherwise we end up reporting all presses twice.
|
|
|
*/
|
|
|
- if (hrv == 3 && acpi_dev_found("INTCFD9"))
|
|
|
+ if (hrv == 3 && (acpi_dev_present("INTCFD9", NULL, -1) ||
|
|
|
+ acpi_dev_present("ACPI0011", NULL, -1)))
|
|
|
return false;
|
|
|
|
|
|
}
|