From fe5cc76253eb3967c694afb2f0802d619c891b71 Mon Sep 17 00:00:00 2001 From: JJ Ding Date: Thu, 10 May 2012 22:32:00 -0700 Subject: [PATCH] --- yaml --- r: 306620 b: refs/heads/master c: 1a49a0a04d13049ac4f90d2e61da9b29a36962f7 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/drivers/input/mouse/synaptics.c | 20 ++++++++++---------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/[refs] b/[refs] index 620528c4b0d1..660eef0dc499 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: f4eea7e213e89a7ba1a23378af2f68b914b0f1e3 +refs/heads/master: 1a49a0a04d13049ac4f90d2e61da9b29a36962f7 diff --git a/trunk/drivers/input/mouse/synaptics.c b/trunk/drivers/input/mouse/synaptics.c index 8081a0a5d602..c778f27a59f0 100644 --- a/trunk/drivers/input/mouse/synaptics.c +++ b/trunk/drivers/input/mouse/synaptics.c @@ -45,16 +45,6 @@ #define YMIN_NOMINAL 1408 #define YMAX_NOMINAL 4448 -/* - * Synaptics touchpads report the y coordinate from bottom to top, which is - * opposite from what userspace expects. - * This function is used to invert y before reporting. - */ -static int synaptics_invert_y(int y) -{ - return YMAX_NOMINAL + YMIN_NOMINAL - y; -} - /***************************************************************************** * Stuff we need even when we do not want native Synaptics support @@ -111,6 +101,16 @@ void synaptics_reset(struct psmouse *psmouse) * Synaptics communications functions ****************************************************************************/ +/* + * Synaptics touchpads report the y coordinate from bottom to top, which is + * opposite from what userspace expects. + * This function is used to invert y before reporting. + */ +static int synaptics_invert_y(int y) +{ + return YMAX_NOMINAL + YMIN_NOMINAL - y; +} + /* * Send a command to the synpatics touchpad by special commands */