Эх сурвалжийг харах

touchscreen: raydium: Change Input Key event

Changed key event from KEY_POWER to KEY_WAKEUP.

Change-Id: Ifeed075504a72426af600291457b46f1d0b336ae
Signed-off-by: ppadasal <[email protected]>
ppadasal 2 жил өмнө
parent
commit
73a5d93a4c

+ 2 - 2
raydium/raydium_driver.c

@@ -1209,11 +1209,11 @@ static void raydium_work_handler(struct work_struct *work)
 		/*if (u8_tp_status[POS_GES_STATUS] == RAD_WAKE_UP */
 		 /*&& g_u8_wakeup_flag == false) { */
 		if (u8_tp_status[POS_GES_STATUS] == 0)	{
-			input_report_key(g_raydium_ts->input_dev, KEY_POWER, true);
+			input_report_key(g_raydium_ts->input_dev, KEY_WAKEUP, true);
 			usleep_range(9500, 10500);
 			input_sync(g_raydium_ts->input_dev);
 
-			input_report_key(g_raydium_ts->input_dev, KEY_POWER, false);
+			input_report_key(g_raydium_ts->input_dev, KEY_WAKEUP, false);
 			input_sync(g_raydium_ts->input_dev);
 			LOGD(LOG_INFO, "[touch]display wake up with g_u8_resetflag true\n");
 			/*goto exit;*/