diff options
author | davidycchen <davidycchen@google.com> | 2021-10-21 11:48:00 +0800 |
---|---|---|
committer | David Chen <davidycchen@google.com> | 2021-10-21 09:20:09 +0000 |
commit | 27d75c78db2a2c324f077618a3ecb2ff9be622be (patch) | |
tree | d8bd33aad0cc5d5aeedb5e230058896d91a9357a /syna_tcm2.c | |
parent | 4a947d1ba4f75eb46381fa62e6d6e768c082c21f (diff) | |
download | synaptics_touch-27d75c78db2a2c324f077618a3ecb2ff9be622be.tar.gz |
synaptics: update dirver verison to 0112
New driver provided by vendor with following difference:
1. Update firmware with different config id.
2. Input device re-creation after firmware update.
Bug: 199104450
Test: Touch is functional.
Signed-off-by: davidycchen <davidycchen@google.com>
Change-Id: I91a82dd930c4fd9e202189f01332635913c959c1
Diffstat (limited to 'syna_tcm2.c')
-rw-r--r-- | syna_tcm2.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/syna_tcm2.c b/syna_tcm2.c index cbbc153..7fcb58d 100644 --- a/syna_tcm2.c +++ b/syna_tcm2.c @@ -910,13 +910,11 @@ static void syna_dev_reflash_startup_work(struct work_struct *work) goto exit; } - /* allocate the input device if not registered yet */ - if (tcm->input_dev == NULL) { - retval = syna_dev_set_up_input_device(tcm); - if (retval < 0) { - LOGE("Fail to register input device\n"); - goto exit; - } + /* check and re-create the input device if needed */ + retval = syna_dev_set_up_input_device(tcm); + if (retval < 0) { + LOGE("Fail to register input device\n"); + goto exit; } exit: |