From: xkd Date: Thu, 28 Mar 2013 12:29:21 +0000 (+0800) Subject: rk2928 : fix gsensor orientation X-Git-Tag: firefly_0821_release~7313 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=5333612b345a1fa99f6c126d2a0ca235c9eaee0b;p=firefly-linux-kernel-4.4.55.git rk2928 : fix gsensor orientation caused by commit 3aae7adc --- diff --git a/arch/arm/mach-rk2928/board-rk2926-sdk.c b/arch/arm/mach-rk2928/board-rk2926-sdk.c index 4f409d337c36..845b1b895863 100755 --- a/arch/arm/mach-rk2928/board-rk2926-sdk.c +++ b/arch/arm/mach-rk2928/board-rk2926-sdk.c @@ -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 diff --git a/arch/arm/mach-rk2928/board-rk2928-a720.c b/arch/arm/mach-rk2928/board-rk2928-a720.c index f99dddf1926c..f40e3bf956ff 100755 --- a/arch/arm/mach-rk2928/board-rk2928-a720.c +++ b/arch/arm/mach-rk2928/board-rk2928-a720.c @@ -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 diff --git a/arch/arm/mach-rk2928/board-rk2928-sdk.c b/arch/arm/mach-rk2928/board-rk2928-sdk.c index 62c15bdc5cf3..2514b0908739 100755 --- a/arch/arm/mach-rk2928/board-rk2928-sdk.c +++ b/arch/arm/mach-rk2928/board-rk2928-sdk.c @@ -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 diff --git a/arch/arm/mach-rk2928/board-rk2928-tb.c b/arch/arm/mach-rk2928/board-rk2928-tb.c index ef2b64de70ae..afe1c88d54a5 100755 --- a/arch/arm/mach-rk2928/board-rk2928-tb.c +++ b/arch/arm/mach-rk2928/board-rk2928-tb.c @@ -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