Skip to content

Commit

Permalink
board-msm7x27a: correct virtual key assignment for u8815
Browse files Browse the repository at this point in the history
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
Daz Jones committed Sep 16, 2013
1 parent 2640fe6 commit 54a7034
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions arch/arm/mach-msm/board-msm7x27a.c
Expand Up @@ -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())
{
Expand All @@ -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())
Expand Down

0 comments on commit 54a7034

Please sign in to comment.