From: lw Date: Thu, 29 Mar 2012 09:36:51 +0000 (+0800) Subject: rk30sdk:modify compass orientation X-Git-Tag: firefly_0821_release~9560^2~5 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=a2056105e4407b45c7dd90435f98d3c4fae5b2da;p=firefly-linux-kernel-4.4.55.git rk30sdk:modify compass orientation --- diff --git a/arch/arm/mach-rk30/board-rk30-sdk.c b/arch/arm/mach-rk30/board-rk30-sdk.c index 9f1980545d58..3ca953121df8 100755 --- a/arch/arm/mach-rk30/board-rk30-sdk.c +++ b/arch/arm/mach-rk30/board-rk30-sdk.c @@ -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}, }, {