summaryrefslogtreecommitdiffstats
path: root/drivers/input/mouse/lifebook.c
diff options
context:
space:
mode:
authorDmitry Torokhov <dmitry.torokhov@gmail.com>2007-10-12 14:19:50 -0400
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2007-10-12 14:19:50 -0400
commit62e729b648c980dfdbfdf8d677cde0d78cd4a51d (patch)
tree8429142df1366fda292400afc9f7e24937392a8a /drivers/input/mouse/lifebook.c
parent9d5657db8c4a485b56b5c9174b52bab39b2fd16e (diff)
downloadblackbird-op-linux-62e729b648c980dfdbfdf8d677cde0d78cd4a51d.tar.gz
blackbird-op-linux-62e729b648c980dfdbfdf8d677cde0d78cd4a51d.zip
Input: lifebook - fix X and Y axis range
Possible range when using 6-byte protocol is 4096 and 1024 for 3-byte protocol. We had it reversed. Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers/input/mouse/lifebook.c')
-rw-r--r--drivers/input/mouse/lifebook.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/mouse/lifebook.c b/drivers/input/mouse/lifebook.c
index b5ee34615e02..9561dee120c6 100644
--- a/drivers/input/mouse/lifebook.c
+++ b/drivers/input/mouse/lifebook.c
@@ -290,7 +290,7 @@ static int lifebook_create_relative_device(struct psmouse *psmouse)
int lifebook_init(struct psmouse *psmouse)
{
struct input_dev *dev1 = psmouse->dev;
- int max_coord = lifebook_use_6byte_proto ? 1024 : 4096;
+ int max_coord = lifebook_use_6byte_proto ? 4096 : 1024;
if (lifebook_absolute_mode(psmouse))
return -1;
OpenPOWER on IntegriCloud