Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 306620
b: refs/heads/master
c: 1a49a0a
h: refs/heads/master
v: v3
  • Loading branch information
JJ Ding authored and Dmitry Torokhov committed May 11, 2012
1 parent 397d62b commit fe5cc76
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f4eea7e213e89a7ba1a23378af2f68b914b0f1e3
refs/heads/master: 1a49a0a04d13049ac4f90d2e61da9b29a36962f7
20 changes: 10 additions & 10 deletions trunk/drivers/input/mouse/synaptics.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
*/
Expand Down

0 comments on commit fe5cc76

Please sign in to comment.