From: wbx Date: Wed, 13 Mar 2013 03:08:31 +0000 (+0800) Subject: rk3066 : fix board-rk30-ds975.c board-rk30-sdk.c for sensor X-Git-Tag: firefly_0821_release~7422 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=8375ed6afe04d112cc8778284a4ca41a65e64bdb;p=firefly-linux-kernel-4.4.55.git rk3066 : fix board-rk30-ds975.c board-rk30-sdk.c for sensor --- diff --git a/arch/arm/mach-rk30/board-rk30-ds975.c b/arch/arm/mach-rk30/board-rk30-ds975.c index f80c96eb912a..5b821b2609ec 100755 --- a/arch/arm/mach-rk30/board-rk30-ds975.c +++ b/arch/arm/mach-rk30/board-rk30-ds975.c @@ -1038,7 +1038,7 @@ static struct sensor_platform_data mma8452_info = { .irq_enable = 1, .poll_delay_ms = 30, .init_platform_hw = mma8452_init_platform_hw, - .orientation = {0, -1, 0, 0, 0, -1, -1, 0, 0}, + .orientation = {0, -1, 0, -1, 0, 0, 0, 0, -1}, }; #endif #if defined (CONFIG_GS_LIS3DH) @@ -1056,7 +1056,7 @@ static struct sensor_platform_data lis3dh_info = { .irq_enable = 1, .poll_delay_ms = 30, .init_platform_hw = lis3dh_init_platform_hw, - .orientation = {0, -1, 0, 0, 0, -1, -1, 0, 0}, + .orientation = {0, -1, 0, -1, 0, 0, 0, 0, -1}, }; #endif diff --git a/arch/arm/mach-rk30/board-rk30-sdk.c b/arch/arm/mach-rk30/board-rk30-sdk.c index 7e8fe1ddef99..1dfc2560cde7 100755 --- a/arch/arm/mach-rk30/board-rk30-sdk.c +++ b/arch/arm/mach-rk30/board-rk30-sdk.c @@ -488,7 +488,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 #if defined (CONFIG_GS_LIS3DH) @@ -506,7 +506,7 @@ static struct sensor_platform_data lis3dh_info = { .irq_enable = 1, .poll_delay_ms = 30, .init_platform_hw = lis3dh_init_platform_hw, - .orientation = {-1, 0, 0, 0, 0, 1, 0, -1, 0}, + .orientation = {-1, 0, 0, 0, -1, 0, 0, 0, 1}, }; #endif #if defined (CONFIG_GS_KXTIK)