rk30sdk:modify compass orientation

This commit is contained in:
lw
2012-03-29 17:36:51 +08:00
parent f188357974
commit a2056105e4

View File

@@ -471,7 +471,7 @@ static struct mma8452_platform_data mma8452_info = {
.swap_xy = 0,
.swap_xyz = 1,
.init_platform_hw = mma8452_init_platform_hw,
.orientation = {-1, 0, 0, 0, 0, -1, 0, -1, 0},
.orientation = {-1, 0, 0, 0, 0, 1, 0, -1, 0},
};
#endif
#if defined (CONFIG_COMPASS_AK8975)
@@ -480,9 +480,9 @@ static struct akm8975_platform_data akm8975_info =
.m_layout =
{
{
{1, 0, 0},
{-1, 0, 0},
{0, 0, 1},
{0, -1, 0},
{0, 0, -1},
},
{