]> www.infradead.org Git - users/hch/misc.git/commitdiff
platform/x86: x86-android-tablets: Add IRQ to Asus ME176C accelerometer info
authorHans de Goede <hdegoede@redhat.com>
Sat, 5 Feb 2022 19:13:55 +0000 (20:13 +0100)
committerHans de Goede <hdegoede@redhat.com>
Fri, 11 Feb 2022 09:50:29 +0000 (10:50 +0100)
Add the IRQ for the accelerometer to the Asus ME176C board info.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Link: https://lore.kernel.org/r/20220205191356.225505-5-hdegoede@redhat.com
drivers/platform/x86/x86-android-tablets.c

index 6174aad572bca75702e6a13ef00abb13b3b2e318..6d3a453d90eb6cf1f627fdbc731a4bff1df82dec 100644 (file)
@@ -361,6 +361,12 @@ static const struct x86_i2c_client_info asus_me176c_i2c_clients[] __initconst =
                        .swnode = &asus_me176c_accel_node,
                },
                .adapter_path = "\\_SB_.I2C5",
+               .irq_data = {
+                       .type = X86_ACPI_IRQ_TYPE_APIC,
+                       .index = 0x44,
+                       .trigger = ACPI_EDGE_SENSITIVE,
+                       .polarity = ACPI_ACTIVE_LOW,
+               },
        }, {
                /* goodix touchscreen */
                .board_info = {