Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0128f8f9 authored by casey.song's avatar casey.song Committed by hecaiqiang
Browse files

Add TP point report patch(2/2)

add TP point report patch

Change-Id: I91e7ab9116eba9cf97791094f172a38432003c25
parent c6627cc7
Loading
Loading
Loading
Loading
+16 −0
Original line number Diff line number Diff line
@@ -293,6 +293,22 @@ static int sec_limit_switch_mode(struct chip_data_s6sy761 *chip_info, bool enabl

}

static int sec_ndx_detect(struct chip_data_s6sy761 *chip_info, bool enable)
{
       int ret = -1;

       if (g_tp->ndx_detect == 2) {
               ret = touch_i2c_write_byte(chip_info->client, SEC_CMD_NDX_DETECT, 2);
       } else if (g_tp->ndx_detect == 1) {
               ret = touch_i2c_write_byte(chip_info->client, SEC_CMD_NDX_DETECT, 1);
       } else {
               ret = touch_i2c_write_byte(chip_info->client, SEC_CMD_NDX_DETECT, 0);
       }
       TPD_INFO("%s: sec_ndx_detect = %d\n", __func__, g_tp->ndx_detect);

    return ret;
}

static int sec_gesture_switch_mode(struct chip_data_s6sy761 *chip_info, bool enable)
{
	int ret = -1;
+1 −0
Original line number Diff line number Diff line
@@ -137,6 +137,7 @@ typedef enum {
    MODE_LIMIT_SWITCH,
    MODE_GESTURE_SWITCH,
    MODE_FINGERPRINT_TEST,
    MODE_NDX_DETECT,
}work_mode;

typedef enum {
+1 −1

File changed.

Contains only whitespace changes.