yocto: CB1 simulate_key not work in latest kirkstone pb [1/1]
PD#SWPL-184637
Problem:
simalte_key not work in latest kirkstone pb
device name has changed
Solution:
add latest devic name support
Verify:
Local
Change-Id: I79b301829258c617a103b7363fba8af6cd641890
Signed-off-by: yanmei.yang <yanmei.yang@amlogic.com>
diff --git a/utils/simulate_key.c b/utils/simulate_key.c
index 8bd3691..8a4761f 100644
--- a/utils/simulate_key.c
+++ b/utils/simulate_key.c
@@ -65,6 +65,9 @@
if (buf) {
if (!foundDev) {
p = strstr(buf, "N: Name=\"ir_keypad\"");
+ if (p == NULL) {
+ p = strstr(buf, "N: Name=\"ir_keypad0_0\"");
+ }
if (p != NULL) {
foundDev = 1;
}