summaryrefslogtreecommitdiffstats
path: root/drivers/input/touchscreen/tsc2007.h
diff options
context:
space:
mode:
authorAndy Shevchenko <andy.shevchenko@gmail.com>2021-03-15 16:49:53 -0700
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2021-03-15 17:12:02 -0700
commitcee451c9d57ee170f123adacd70391dfb7a0b1a6 (patch)
tree3d4d1d318e37cf3b3716b0ac12927c37b52265f0 /drivers/input/touchscreen/tsc2007.h
parentea16ef967ec88bd67466d564d461c3fdf7f85bd9 (diff)
downloadlinux-cee451c9d57ee170f123adacd70391dfb7a0b1a6.tar.bz2
Input: tsc2007 - convert to GPIO descriptors
This converts the driver to use GPIO descriptors. Note that it now uses logical polarity and thus nagation has been dropped. Signed-off-by: Andy Shevchenko <andy.shevchenko@gmail.com> Link: https://lore.kernel.org/r/20210314210951.645783-1-andy.shevchenko@gmail.com Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input/touchscreen/tsc2007.h')
-rw-r--r--drivers/input/touchscreen/tsc2007.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/input/touchscreen/tsc2007.h b/drivers/input/touchscreen/tsc2007.h
index 91c60bf6dcaf..69b08dd6c8df 100644
--- a/drivers/input/touchscreen/tsc2007.h
+++ b/drivers/input/touchscreen/tsc2007.h
@@ -19,6 +19,8 @@
#ifndef _TSC2007_H
#define _TSC2007_H
+struct gpio_desc;
+
#define TSC2007_MEASURE_TEMP0 (0x0 << 4)
#define TSC2007_MEASURE_AUX (0x2 << 4)
#define TSC2007_MEASURE_TEMP1 (0x4 << 4)
@@ -69,7 +71,7 @@ struct tsc2007 {
int fuzzy;
int fuzzz;
- unsigned int gpio;
+ struct gpio_desc *gpiod;
int irq;
wait_queue_head_t wait;