Skip to content

Commit bac6eb7

Browse files
Kleistdtor
authored andcommitted
Input: exc3000 - add ACPI support for EXC80H60
EXC80H60 is used in Ambu aBox2 with ACPI _HID "EGA00001". Snippet of from "apcidump -b; iasl ssdt2.dat" on target: Device (TPL2) { Name (HID2, Zero) Name (_HID, "EGA00001") // _HID: Hardware ID Name (_CID, "PNP0C50" /* HID Protocol Device (I2C bus) */) // _CID: Compatible ID Name (_S0W, 0x04) // _S0W: S0 Device Wake State Name (SBFB, ResourceTemplate () Signed-off-by: Andreas Helbech Kleist <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Dmitry Torokhov <[email protected]>
1 parent bf4ed21 commit bac6eb7

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

drivers/input/touchscreen/exc3000.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
* minimal implementation based on egalax_ts.c and egalax_i2c.c
88
*/
99

10+
#include <linux/acpi.h>
1011
#include <linux/bitops.h>
1112
#include <linux/delay.h>
1213
#include <linux/device.h>
@@ -454,10 +455,19 @@ static const struct of_device_id exc3000_of_match[] = {
454455
MODULE_DEVICE_TABLE(of, exc3000_of_match);
455456
#endif
456457

458+
#ifdef CONFIG_ACPI
459+
static const struct acpi_device_id exc3000_acpi_match[] = {
460+
{ "EGA00001", .driver_data = (kernel_ulong_t)&exc3000_info[EETI_EXC80H60] },
461+
{ }
462+
};
463+
MODULE_DEVICE_TABLE(acpi, exc3000_acpi_match);
464+
#endif
465+
457466
static struct i2c_driver exc3000_driver = {
458467
.driver = {
459468
.name = "exc3000",
460469
.of_match_table = of_match_ptr(exc3000_of_match),
470+
.acpi_match_table = ACPI_PTR(exc3000_acpi_match),
461471
},
462472
.id_table = exc3000_id,
463473
.probe = exc3000_probe,

0 commit comments

Comments
 (0)