summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNaga Radhesh <naga.radheshy@stericsson.com>2011-11-21 20:23:35 +0530
committerPhilippe Langlais <philippe.langlais@stericsson.com>2012-05-22 11:02:37 +0200
commit1472cab79b3f714946e9c9d357423d3027746bf7 (patch)
tree06bde86879f7d60b05a6830f395ecd02f321d9a0
parent3bbb54784a16547add3ee76701558f00d19cc4b5 (diff)
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 <naga.radheshy@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/39150 Reviewed-by: QATOOLS Reviewed-by: QABUILD Reviewed-by: Srinidhi KASAGAR <srinidhi.kasagar@stericsson.com>
-rwxr-xr-xarch/arm/mach-ux500/board-mop500-cyttsp.c8
-rw-r--r--arch/arm/mach-ux500/board-mop500-u8500uib.c8
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 5f6a048849c..91355685365 100644
--- a/arch/arm/mach-ux500/board-mop500-u8500uib.c
+++ b/arch/arm/mach-ux500/board-mop500-u8500uib.c
@@ -41,8 +41,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
@@ -53,8 +53,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