aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDima Zavin <dima@android.com>2012-09-10 14:32:33 -0700
committerDima Zavin <dima@android.com>2012-09-10 14:32:38 -0700
commit53f638c52dbfb46bd9b21239ccce9d0083bde383 (patch)
tree87fa83b885d7ec02e7fd91730e7a0b3c46dfb01a
parent95b8c1cdd7cee4f6a97de28b5f55d9c9770ddd9a (diff)
downloadkernel_samsung_tuna-53f638c52dbfb46bd9b21239ccce9d0083bde383.zip
kernel_samsung_tuna-53f638c52dbfb46bd9b21239ccce9d0083bde383.tar.gz
kernel_samsung_tuna-53f638c52dbfb46bd9b21239ccce9d0083bde383.tar.bz2
input: mms_ts: max x/y are max coordinates, not the x/y size
Set max x/y to size - 1 Change-Id: I5bf99bfb45d5ae170049cc574694882e62194e60 Signed-off-by: Dima Zavin <dima@android.com>
-rwxr-xr-xdrivers/input/touchscreen/mms_ts.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/input/touchscreen/mms_ts.c b/drivers/input/touchscreen/mms_ts.c
index a6ec6eb..69c5bb5 100755
--- a/drivers/input/touchscreen/mms_ts.c
+++ b/drivers/input/touchscreen/mms_ts.c
@@ -805,9 +805,9 @@ static int __devinit mms_ts_probe(struct i2c_client *client,
input_set_abs_params(input_dev, ABS_MT_TOUCH_MAJOR, 0, MAX_WIDTH, 0, 0);
input_set_abs_params(input_dev, ABS_MT_PRESSURE, 0, MAX_PRESSURE, 0, 0);
input_set_abs_params(input_dev, ABS_MT_POSITION_X,
- 0, info->max_x, 0, 0);
+ 0, info->max_x - 1, 0, 0);
input_set_abs_params(input_dev, ABS_MT_POSITION_Y,
- 0, info->max_y, 0, 0);
+ 0, info->max_y - 1, 0, 0);
input_set_drvdata(input_dev, info);