From: yxj Date: Thu, 28 Feb 2013 09:58:46 +0000 (+0800) Subject: LR097:compatile with gsensor lis3dh X-Git-Tag: firefly_0821_release~7485 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=f60b4cf0c4a99e3e0cb27cf1cbd814922774a4a6;p=firefly-linux-kernel-4.4.55.git LR097:compatile with gsensor lis3dh --- 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)