Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Input: drv260x - add support for ACPI-enumerated devices

Add ACPI ID for drv2604 haptics device found in Lenovo Yoga Book
YB1-X91L tablet.

Signed-off-by: Yauhen Kharuzhy <jekhor@gmail.com>
Link: https://patch.msgid.link/20260215141435.727872-4-jekhor@gmail.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>

authored by

Yauhen Kharuzhy and committed by
Dmitry Torokhov
029edcfc c0347a38

+10
+10
drivers/input/misc/drv260x.c
··· 7 7 * Copyright: (C) 2014 Texas Instruments, Inc. 8 8 */ 9 9 10 + #include <linux/acpi.h> 10 11 #include <linux/delay.h> 11 12 #include <linux/gpio/consumer.h> 12 13 #include <linux/i2c.h> ··· 607 606 }; 608 607 MODULE_DEVICE_TABLE(i2c, drv260x_id); 609 608 609 + #ifdef CONFIG_ACPI 610 + static const struct acpi_device_id drv260x_acpi_match[] = { 611 + { "DRV2604" }, 612 + { } 613 + }; 614 + MODULE_DEVICE_TABLE(acpi, drv260x_acpi_match); 615 + #endif 616 + 610 617 static const struct of_device_id drv260x_of_match[] = { 611 618 { .compatible = "ti,drv2604", }, 612 619 { .compatible = "ti,drv2604l", }, ··· 628 619 .probe = drv260x_probe, 629 620 .driver = { 630 621 .name = "drv260x-haptics", 622 + .acpi_match_table = ACPI_PTR(drv260x_acpi_match), 631 623 .of_match_table = drv260x_of_match, 632 624 .pm = pm_sleep_ptr(&drv260x_pm_ops), 633 625 },