Skip to content

Commit

Permalink
Input: lifebook - fix X and Y axis range
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Dmitry Torokhov committed Oct 12, 2007
1 parent 9d5657d commit 62e729b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/input/mouse/lifebook.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 62e729b

Please sign in to comment.