diff options
Diffstat (limited to 'drivers/input')
-rw-r--r-- | drivers/input/mouse/synaptics.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/drivers/input/mouse/synaptics.c b/drivers/input/mouse/synaptics.c index 8081a0a5d602..c778f27a59f0 100644 --- a/drivers/input/mouse/synaptics.c +++ b/drivers/input/mouse/synaptics.c | |||
@@ -45,16 +45,6 @@ | |||
45 | #define YMIN_NOMINAL 1408 | 45 | #define YMIN_NOMINAL 1408 |
46 | #define YMAX_NOMINAL 4448 | 46 | #define YMAX_NOMINAL 4448 |
47 | 47 | ||
48 | /* | ||
49 | * Synaptics touchpads report the y coordinate from bottom to top, which is | ||
50 | * opposite from what userspace expects. | ||
51 | * This function is used to invert y before reporting. | ||
52 | */ | ||
53 | static int synaptics_invert_y(int y) | ||
54 | { | ||
55 | return YMAX_NOMINAL + YMIN_NOMINAL - y; | ||
56 | } | ||
57 | |||
58 | 48 | ||
59 | /***************************************************************************** | 49 | /***************************************************************************** |
60 | * Stuff we need even when we do not want native Synaptics support | 50 | * Stuff we need even when we do not want native Synaptics support |
@@ -112,6 +102,16 @@ void synaptics_reset(struct psmouse *psmouse) | |||
112 | ****************************************************************************/ | 102 | ****************************************************************************/ |
113 | 103 | ||
114 | /* | 104 | /* |
105 | * Synaptics touchpads report the y coordinate from bottom to top, which is | ||
106 | * opposite from what userspace expects. | ||
107 | * This function is used to invert y before reporting. | ||
108 | */ | ||
109 | static int synaptics_invert_y(int y) | ||
110 | { | ||
111 | return YMAX_NOMINAL + YMIN_NOMINAL - y; | ||
112 | } | ||
113 | |||
114 | /* | ||
115 | * Send a command to the synpatics touchpad by special commands | 115 | * Send a command to the synpatics touchpad by special commands |
116 | */ | 116 | */ |
117 | static int synaptics_send_cmd(struct psmouse *psmouse, unsigned char c, unsigned char *param) | 117 | static int synaptics_send_cmd(struct psmouse *psmouse, unsigned char c, unsigned char *param) |