aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/input/touchscreen/tsc2007_iio.c
diff options
context:
space:
mode:
authorH. Nikolaus Schaller <hns@goldelico.com>2017-02-22 23:49:02 -0800
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2017-02-22 23:55:07 -0800
commitdeec586d4fcbc14a262f8b887543abcb1c64af98 (patch)
tree643340c8ea7dc04fcc16a216ccabfcd452fdac4e /drivers/input/touchscreen/tsc2007_iio.c
parentInput: tsc2007 - switch to using input_set_capability() (diff)
downloadlinux-dev-deec586d4fcbc14a262f8b887543abcb1c64af98.tar.xz
linux-dev-deec586d4fcbc14a262f8b887543abcb1c64af98.zip
Input: tsc2007 - rename function tsc2007_calculate_pressure
Rename tsc2007_calculate_pressure to tsc2007_calculate_resistance because that is what it does. Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to '')
-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: