summaryrefslogtreecommitdiff
path: root/drivers/platform/x86/x86-android-tablets/asus.c
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2023-09-09 17:18:14 +0300
committerHans de Goede <hdegoede@redhat.com>2023-09-11 14:28:58 +0300
commit4014ae236b1d490f5db798d159a03470aec71a40 (patch)
treee06e84bc010b70add95b10c5a7fb51687cefe440 /drivers/platform/x86/x86-android-tablets/asus.c
parent8b57d33a6fdbb53d03da762b31e65a1027f74caf (diff)
downloadlinux-4014ae236b1d490f5db798d159a03470aec71a40.tar.xz
platform/x86: x86-android-tablets: Stop using gpiolib private APIs
Refactor x86_android_tablet_get_gpiod() to no longer use gpiolib private functions like gpiochip_find(). As a bonus this allows specifying that the GPIO is active-low, like the /CE (charge enable) pin on the bq25892 charger on the Lenovo Yoga Tablet 3. Reported-by: Bartosz Golaszewski <brgl@bgdev.pl> Closes: https://lore.kernel.org/platform-driver-x86/20230905185309.131295-12-brgl@bgdev.pl/ Signed-off-by: Hans de Goede <hdegoede@redhat.com> Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com> Acked-by: Linus Walleij <linus.walleij@linaro.org> Link: https://lore.kernel.org/r/20230909141816.58358-7-hdegoede@redhat.com
Diffstat (limited to 'drivers/platform/x86/x86-android-tablets/asus.c')
-rw-r--r--drivers/platform/x86/x86-android-tablets/asus.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/platform/x86/x86-android-tablets/asus.c b/drivers/platform/x86/x86-android-tablets/asus.c
index f9c4083be86d..227afbb51078 100644
--- a/drivers/platform/x86/x86-android-tablets/asus.c
+++ b/drivers/platform/x86/x86-android-tablets/asus.c
@@ -303,6 +303,7 @@ static const struct x86_i2c_client_info asus_tf103c_i2c_clients[] __initconst =
.index = 28,
.trigger = ACPI_EDGE_SENSITIVE,
.polarity = ACPI_ACTIVE_LOW,
+ .con_id = "atmel_mxt_ts_irq",
},
},
};