Skip to content

Commit

Permalink
Input: psmouse - remove hardcoded touchpad size from the focaltech dr…
Browse files Browse the repository at this point in the history
…iver

The size has in most cases already been fetched from the touchpad, the
hardcoded values should have been removed.

Signed-off-by: Mathias Gottschlag <mgottschlag@gmail.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
  • Loading branch information
Mathias Gottschlag authored and Dmitry Torokhov committed Mar 7, 2015
1 parent 20f02d6 commit 3e98452
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions drivers/input/mouse/focaltech.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,6 @@ static void focaltech_reset(struct psmouse *psmouse)

#define FOC_MAX_FINGERS 5

#define FOC_MAX_X 2431
#define FOC_MAX_Y 1663

/*
* Current state of a single finger on the touchpad.
*/
Expand Down Expand Up @@ -131,7 +128,7 @@ static void focaltech_report_state(struct psmouse *psmouse)
if (active) {
input_report_abs(dev, ABS_MT_POSITION_X, finger->x);
input_report_abs(dev, ABS_MT_POSITION_Y,
FOC_MAX_Y - finger->y);
priv->y_max - finger->y);
}
}
input_mt_report_pointer_emulation(dev, true);
Expand Down

0 comments on commit 3e98452

Please sign in to comment.