From 8748f46daa55c2a1cff7ca1e70420bbc0225c43f Mon Sep 17 00:00:00 2001 From: Naga RADHESH Y Date: Tue, 14 Feb 2012 07:46:55 +0100 Subject: mach-ux500: Invert X,Y co-ordinates of sensors Now display is inverted to position keypad below display for all UIB's,So x,y co-ordinates of sensor need to be inverted to align with display. ST-Ericsson ID: 368097 ST-Ericsson Linux next: NA ST-Ericsson FOSS-OUT ID: Trivial Change-Id:Ia16da65351da3beac541cfe30ddae7092445f804 Signed-off-by: Naga Radhesh --- arch/arm/mach-ux500/board-mop500-cyttsp.c | 8 ++++---- arch/arm/mach-ux500/board-mop500-u8500uib.c | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/arch/arm/mach-ux500/board-mop500-cyttsp.c b/arch/arm/mach-ux500/board-mop500-cyttsp.c index c64f732d7c7..ca33dfd86ab 100755 --- a/arch/arm/mach-ux500/board-mop500-cyttsp.c +++ b/arch/arm/mach-ux500/board-mop500-cyttsp.c @@ -37,8 +37,8 @@ static struct lsm303dlh_platform_data __initdata lsm303dlh_pdata_u8500_r3 = { .axis_map_x = 1, .axis_map_y = 0, .axis_map_z = 2, - .negative_x = 1, - .negative_y = 1, + .negative_x = 0, + .negative_y = 0, .negative_z = 1, }; @@ -47,8 +47,8 @@ static struct l3g4200d_gyr_platform_data __initdata l3g4200d_pdata_u8500_r3 = { .axis_map_x = 0, .axis_map_y = 1, .axis_map_z = 2, - .negative_x = 0, - .negative_y = 1, + .negative_x = 1, + .negative_y = 0, .negative_z = 1, }; static struct i2c_board_info __initdata mop500_i2c2_devices_u8500_r3[] = { diff --git a/arch/arm/mach-ux500/board-mop500-u8500uib.c b/arch/arm/mach-ux500/board-mop500-u8500uib.c index 8c3232e3e3f..1399c1bcde4 100644 --- a/arch/arm/mach-ux500/board-mop500-u8500uib.c +++ b/arch/arm/mach-ux500/board-mop500-u8500uib.c @@ -42,8 +42,8 @@ static struct lsm303dlh_platform_data __initdata lsm303dlh_pdata_u8500 = { .axis_map_x = 1, .axis_map_y = 0, .axis_map_z = 2, - .negative_x = 1, - .negative_y = 1, + .negative_x = 0, + .negative_y = 0, .negative_z = 1, }; #endif @@ -54,8 +54,8 @@ static struct l3g4200d_gyr_platform_data __initdata l3g4200d_pdata_u8500 = { .axis_map_x = 0, .axis_map_y = 1, .axis_map_z = 2, - .negative_x = 0, - .negative_y = 1, + .negative_x = 1, + .negative_y = 0, .negative_z = 1, }; #endif -- cgit v1.2.3