projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5a5fe09
)
modified mma8452 for aigo board
author
hxy
<hxy@rock-chips.com>
Thu, 6 Jan 2011 11:30:57 +0000
(19:30 +0800)
committer
hxy
<hxy@rock-chips.com>
Thu, 6 Jan 2011 11:30:57 +0000
(19:30 +0800)
drivers/input/gsensor/mma8452.c
patch
|
blob
|
history
diff --git
a/drivers/input/gsensor/mma8452.c
b/drivers/input/gsensor/mma8452.c
index dcc834b5bd71d7047d0c3b0c054d2241591259f4..ec4838906e63bdeb7582cf1aeadfe6dfda288f66 100644
(file)
--- a/
drivers/input/gsensor/mma8452.c
+++ b/
drivers/input/gsensor/mma8452.c
@@
-337,6
+337,9
@@
static int mma8452_get_data(struct i2c_client *client)
axis.y = -axis.y;
swap(axis.x,axis.y);
}
+ #if defined(CONFIG_MACH_RK29_AIGO)
+ axis.x = -axis.x;
+ #endif
// mmaprintk( "%s: ------------------mma8452_GetData axis = %d %d %d--------------\n",
// __func__, axis.x, axis.y, axis.z);