rk2928 : fix gsensor orientation

caused by commit 3aae7adc
This commit is contained in:
xkd
2013-03-28 20:29:21 +08:00
parent 1f310b1a93
commit 5333612b34
4 changed files with 7 additions and 7 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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