K97:alter orientation of gsensor
author杨云 <yangyun@rock-chips.com>
Tue, 31 Jan 2012 08:08:53 +0000 (16:08 +0800)
committeryangyun <yangyun@rock-chips.com>
Tue, 31 Jan 2012 08:10:04 +0000 (16:10 +0800)
arch/arm/mach-rk29/board-rk29-k97.c

index 213e3b3b2a879becff79966d4456cc2b8b8e64df..a2a6aee5b00e4c8a3bf05e35073435459be07317 100755 (executable)
@@ -1020,8 +1020,8 @@ static int mma8452_init_platform_hw(void)
 static struct mma8452_platform_data mma8452_info = {
   .model= 8452,
   .swap_xyz= 1,
-  .swap_xy=1,
-  .orientation ={-1,0,0,0,1,0,0,0,-1},
+  .swap_xy=0,
+  .orientation ={1,0,0,0,0,1,0,-1,0},
   .init_platform_hw= mma8452_init_platform_hw,
 
 };