summaryrefslogtreecommitdiff
path: root/ft3658/focaltech_ex_fun.c
diff options
context:
space:
mode:
authorMason Wang <masonwang@google.com>2021-10-14 12:43:57 +0800
committerMason Wang <masonwang@google.com>2021-10-14 12:45:26 +0800
commitb4602389a9b25a4bdd9fdc03d639cb96e98691b6 (patch)
tree14b9fcfa24d421be1197b450bc41c917f673691e /ft3658/focaltech_ex_fun.c
parent88f54cb11bebc1ec973a4631e76eddf84a88e4ca (diff)
downloadfocaltech_touch-b4602389a9b25a4bdd9fdc03d639cb96e98691b6.tar.gz
touch/focaltech: Remove usage of irq_to_desc API.
Remove usage of irq_to_desc API in Pixel kernels since Linux has removed it upstream. Bug: 202959305 Test: Verify by following command: $adb shell cat /sys/class/spi_master/spi0/spi0.0/fts_irq => irq_enable:1 Change-Id: Ibcf0185f4a3bd3d86678d8cf8102af523635e4a5
Diffstat (limited to 'ft3658/focaltech_ex_fun.c')
-rw-r--r--ft3658/focaltech_ex_fun.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ft3658/focaltech_ex_fun.c b/ft3658/focaltech_ex_fun.c
index 858db26..51d9f5b 100644
--- a/ft3658/focaltech_ex_fun.c
+++ b/ft3658/focaltech_ex_fun.c
@@ -660,9 +660,9 @@ static ssize_t fts_irq_show(
struct device *dev, struct device_attribute *attr, char *buf)
{
ssize_t count = 0;
- struct irq_desc *desc = irq_to_desc(fts_data->irq);
- count = snprintf(buf, PAGE_SIZE, "irq_depth:%d\n", desc->depth);
+ count = snprintf(buf, PAGE_SIZE, "irq_enable:%d\n",
+ !fts_data->irq_disabled);
return count;
}