rk2928 : fix gsensor orientation
authorxkd <xkd@rock-chips.com>
Thu, 28 Mar 2013 12:29:21 +0000 (20:29 +0800)
committerxkd <xkd@rock-chips.com>
Thu, 28 Mar 2013 12:36:54 +0000 (20:36 +0800)
caused by commit 3aae7adc

arch/arm/mach-rk2928/board-rk2926-sdk.c
arch/arm/mach-rk2928/board-rk2928-a720.c
arch/arm/mach-rk2928/board-rk2928-sdk.c
arch/arm/mach-rk2928/board-rk2928-tb.c

index 4f409d337c36b959b0b41f562246928db2af65cd..845b1b89586392efeec0007bfad988742bacacbb 100755 (executable)
@@ -509,12 +509,12 @@ static struct sensor_platform_data mma7660_info = {
         .init_platform_hw = mma7660_init_platform_hw,
         #if defined(V86_VERSION_1_0) || defined(V86_VERSION_1_1)
            #if defined(V86_VERSION_1_0)
-           .orientation = {1, 0, 0, 0, 0, -1, 0, -1, 0},
+           .orientation = {1, 0, 0, 0, -1, 0, 0, 0, -1},
             #else if defined(V86_VERSION_1_1)
-            .orientation = {0, 1, 0, 0, 0, -1, 1, 0, 0},
+            .orientation = {0, 1, 0, 1, 0, 0, 0, 0, -1},
             #endif
         #else 
-        .orientation = {-1, 0, 0, 0, 0, -1, 0, 1, 0},
+        .orientation = {-1, 0, 0, 0, 1, 0, 0, 0, -1},
         #endif
 };
 #endif
index f99dddf1926c19260757be3c4d420bb431733e2b..f40e3bf956ffe32529bad5f9f5372c162994bb45 100755 (executable)
@@ -406,7 +406,7 @@ static struct sensor_platform_data mma7660_info = {
        .irq_enable = 1,
        .poll_delay_ms = 30,
         .init_platform_hw = mma7660_init_platform_hw,
-        .orientation = {-1, 0, 0, 0, 0, -1, 0, 1, 0},
+        .orientation = {-1, 0, 0, 0, 1, 0, 0, 0, -1},
 };
 #endif
 
index 62c15bdc5cf3d1c5029da78e0d58e6f41128d765..2514b090873921166426bc328bfc919ecea6760f 100755 (executable)
@@ -423,7 +423,7 @@ static struct sensor_platform_data mma7660_info = {
        .irq_enable = 1,
        .poll_delay_ms = 30,
         .init_platform_hw = mma7660_init_platform_hw,
-        .orientation = {-1, 0, 0, 0, 0, 1, 0, -1, 0},
+        .orientation = {-1, 0, 0, 0, -1, 0, 0, 0, 1},
 };
 #endif
 
@@ -441,7 +441,7 @@ static struct sensor_platform_data mxc6225_info = {
        .irq_enable = 0,
        .poll_delay_ms = 30,
        .init_platform_hw = mxc6225_init_platform_hw,
-       .orientation = { 0, 0, 0, 0, 1, 0, 1, 0, 0 },
+       .orientation = { 0, 0, 0, 1, 0, 0, 0, 1, 0 },
 };
 #endif
 
index ef2b64de70aeb791d66ec2a2b595a6ac858fb3ff..afe1c88d54a541ab75214c19131669d9576cec51 100755 (executable)
@@ -239,7 +239,7 @@ static struct sensor_platform_data mma8452_info = {
        .irq_enable = 1,
        .poll_delay_ms = 30,
         .init_platform_hw = mma8452_init_platform_hw,
-        .orientation = {-1, 0, 0, 0, 0, 1, 0, -1, 0},
+        .orientation = {-1, 0, 0, 0, -1, 0, 0, 0, 1},
 };
 #endif