summaryrefslogtreecommitdiff
path: root/drivers/input/touchscreen/tsc2007_iio.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/input/touchscreen/tsc2007_iio.c')
-rw-r--r--drivers/input/touchscreen/tsc2007_iio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/touchscreen/tsc2007_iio.c b/drivers/input/touchscreen/tsc2007_iio.c
index 0ec3f28d0457..27b25a9fce83 100644
--- a/drivers/input/touchscreen/tsc2007_iio.c
+++ b/drivers/input/touchscreen/tsc2007_iio.c
@@ -76,7 +76,7 @@ static int tsc2007_read_raw(struct iio_dev *indio_dev,
tc.x = tsc2007_xfer(tsc, READ_X);
tc.z1 = tsc2007_xfer(tsc, READ_Z1);
tc.z2 = tsc2007_xfer(tsc, READ_Z2);
- *val = tsc2007_calculate_pressure(tsc, &tc);
+ *val = tsc2007_calculate_resistance(tsc, &tc);
break;
}
case 6: