mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 04:10:18 +09:00
rk30sdk:modify compass orientation
This commit is contained in:
@@ -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},
|
||||
},
|
||||
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user