Skip to content
Permalink
Browse files

board-msm7x27a: correct virtual key assignment for u8815

As far as I can tell, u8815 is the only device that is incorrect here.

Original change by Fagulhas: https://github.com/Fagulhas/android_kernel_huawei_msm7x27a/commit/59cc6f198802ad3d0ff2a6fe42b58007a4b960c3
  • Loading branch information...
Dazzozo committed Sep 16, 2013
1 parent 2640fe6 commit 54a7034c02d8c13eed17ce47b7874f0f725435f5
Showing with 10 additions and 4 deletions.
  1. +10 −4 arch/arm/mach-msm/board-msm7x27a.c
@@ -1270,14 +1270,21 @@ static void __init virtualkeys_init(void)
struct kobject *properties_kobj;
int ret=0;
/*Modify the virtualkeys of touchsreen*/
if(machine_is_msm7x27a_U8815()
|| machine_is_msm8x25_U8825()
if(machine_is_msm7x27a_U8815())
{
buf_vkey_size = sprintf(buf_virtualkey,
__stringify(EV_KEY) ":" __stringify(KEY_MENU) ":57:850:100:80"
":" __stringify(EV_KEY) ":" __stringify(KEY_HOME) ":240:850:100:80"
":" __stringify(EV_KEY) ":" __stringify(KEY_BACK) ":423:850:100:80"
"\n");
}
else if(machine_is_msm8x25_U8825()
|| machine_is_msm8x25_U8825D()
|| machine_is_msm8x25_C8825D()
|| machine_is_msm8x25_C8833D()
|| machine_is_msm8x25_U8833D()
|| machine_is_msm8x25_U8833()
|| machine_is_msm7x27a_C8820()
|| machine_is_msm7x27a_C8820()
|| machine_is_msm8x25_H881C()
|| machine_is_msm8x25_C8812P())
{
@@ -1287,7 +1294,6 @@ static void __init virtualkeys_init(void)
":" __stringify(EV_KEY) ":" __stringify(KEY_MENU) ":423:850:100:80"
"\n");
}

else if(machine_is_msm8x25_C8950D()
|| machine_is_msm8x25_U8950D()
|| machine_is_msm8x25_U8950())

0 comments on commit 54a7034

Please sign in to comment.
You can’t perform that action at this time.