diff options
author | Mathias Gottschlag <mgottschlag@gmail.com> | 2015-03-07 16:26:31 -0500 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2015-03-07 16:40:20 -0500 |
commit | 3e9845251926723319fb60c9e546fe42d3d11687 (patch) | |
tree | 43e3bca5029b1749ee16c633af401afe9ec3ffe1 | |
parent | 20f02d66f042f2b6a929519fd9ee62f77013ccaa (diff) |
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>
-rw-r--r-- | drivers/input/mouse/focaltech.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/input/mouse/focaltech.c b/drivers/input/mouse/focaltech.c index 757f78a94aec..e8fafe8785a7 100644 --- a/drivers/input/mouse/focaltech.c +++ b/drivers/input/mouse/focaltech.c | |||
@@ -67,9 +67,6 @@ static void focaltech_reset(struct psmouse *psmouse) | |||
67 | 67 | ||
68 | #define FOC_MAX_FINGERS 5 | 68 | #define FOC_MAX_FINGERS 5 |
69 | 69 | ||
70 | #define FOC_MAX_X 2431 | ||
71 | #define FOC_MAX_Y 1663 | ||
72 | |||
73 | /* | 70 | /* |
74 | * Current state of a single finger on the touchpad. | 71 | * Current state of a single finger on the touchpad. |
75 | */ | 72 | */ |
@@ -131,7 +128,7 @@ static void focaltech_report_state(struct psmouse *psmouse) | |||
131 | if (active) { | 128 | if (active) { |
132 | input_report_abs(dev, ABS_MT_POSITION_X, finger->x); | 129 | input_report_abs(dev, ABS_MT_POSITION_X, finger->x); |
133 | input_report_abs(dev, ABS_MT_POSITION_Y, | 130 | input_report_abs(dev, ABS_MT_POSITION_Y, |
134 | FOC_MAX_Y - finger->y); | 131 | priv->y_max - finger->y); |
135 | } | 132 | } |
136 | } | 133 | } |
137 | input_mt_report_pointer_emulation(dev, true); | 134 | input_mt_report_pointer_emulation(dev, true); |