From f60b4cf0c4a99e3e0cb27cf1cbd814922774a4a6 Mon Sep 17 00:00:00 2001 From: yxj Date: Thu, 28 Feb 2013 17:58:46 +0800 Subject: [PATCH] LR097:compatile with gsensor lis3dh --- arch/arm/configs/rk3188_LR097_defconfig | 1 + arch/arm/mach-rk30/board-rk3168-LR097.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/configs/rk3188_LR097_defconfig b/arch/arm/configs/rk3188_LR097_defconfig index 69d603f10521..dae5d7ee30ca 100644 --- a/arch/arm/configs/rk3188_LR097_defconfig +++ b/arch/arm/configs/rk3188_LR097_defconfig @@ -239,6 +239,7 @@ CONFIG_INPUT_MISC=y CONFIG_INPUT_KEYCHORD=y CONFIG_INPUT_UINPUT=y CONFIG_GS_MMA8452=y +CONFIG_GS_LIS3DH=y CONFIG_SENSOR_DEVICE=y CONFIG_GSENSOR_DEVICE=y # CONFIG_SERIO is not set diff --git a/arch/arm/mach-rk30/board-rk3168-LR097.c b/arch/arm/mach-rk30/board-rk3168-LR097.c index 56b32e0fcb18..f7792a429491 100755 --- a/arch/arm/mach-rk30/board-rk3168-LR097.c +++ b/arch/arm/mach-rk30/board-rk3168-LR097.c @@ -415,7 +415,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, 0, -1, 0, -1, 0}, }; #endif #if defined(CONFIG_CHARGER_CW2015) -- 2.34.1