Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 62e729b6 authored by Dmitry Torokhov's avatar Dmitry Torokhov
Browse files

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: default avatarDmitry Torokhov <dtor@mail.ru>
parent 9d5657db
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;