mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 19:00:25 +00:00
Input: psmouse - remove hardcoded touchpad size from the focaltech driver
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>
This commit is contained in:
parent
20f02d66f0
commit
3e98452519
1 changed files with 1 additions and 4 deletions
|
@ -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.
|
||||
*/
|
||||
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue