From: lw Date: Mon, 26 Mar 2012 06:47:52 +0000 (+0800) Subject: rk30sdk:modify gsensor orientation X-Git-Tag: firefly_0821_release~9577 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=a3e1199bb0ce1f606c9b621efba6cca4d0cb0696;p=firefly-linux-kernel-4.4.55.git rk30sdk:modify gsensor orientation --- diff --git a/arch/arm/mach-rk30/board-rk30-sdk.c b/arch/arm/mach-rk30/board-rk30-sdk.c index 49ad136d9ef1..0bd00a57b382 100755 --- a/arch/arm/mach-rk30/board-rk30-sdk.c +++ b/arch/arm/mach-rk30/board-rk30-sdk.c @@ -365,7 +365,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 = {0, -1, 0, 0, 0, 1, 1, 0, 0}, }; #endif #if defined (CONFIG_COMPASS_AK8975)