diff options
author | davidycchen <davidycchen@google.com> | 2021-10-20 14:12:04 +0800 |
---|---|---|
committer | David Chen <davidycchen@google.com> | 2021-10-21 09:20:04 +0000 |
commit | 4a947d1ba4f75eb46381fa62e6d6e768c082c21f (patch) | |
tree | 7b30322746ae577c209e7559a2d1cc732459339a /syna_tcm2.c | |
parent | bf9731c028f5959aa4e80834bd5579c906b894b9 (diff) | |
download | synaptics_touch-4a947d1ba4f75eb46381fa62e6d6e768c082c21f.tar.gz |
synaptics: support panel map device tree
Support panel map to recognize different panel.
Bug: 203479046
Test: Touch driver can recognize different panel.
Signed-off-by: davidycchen <davidycchen@google.com>
Change-Id: If762d3a2757605c78dcf75ea60a24356e7b8c6a6
Diffstat (limited to 'syna_tcm2.c')
-rw-r--r-- | syna_tcm2.c | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/syna_tcm2.c b/syna_tcm2.c index 96f4606..cbbc153 100644 --- a/syna_tcm2.c +++ b/syna_tcm2.c @@ -77,17 +77,6 @@ static unsigned char custom_touch_format[] = { #endif /** - * @section: STARTUP_REFLASH_DELAY_TIME_MS - * The delayed time to start fw update during the startup time. - * This configuration depends on STARTUP_REFLASH. - */ -#ifdef STARTUP_REFLASH -#define STARTUP_REFLASH_DELAY_TIME_MS (200) - -#define FW_IMAGE_NAME "synaptics.img" -#endif - -/** * @section: RESET_ON_RESUME_DELAY_MS * The delayed time to issue a reset on resume state. * This configuration depends on RESET_ON_RESUME. @@ -876,10 +865,10 @@ static void syna_dev_reflash_startup_work(struct work_struct *work) /* get firmware image */ retval = request_firmware(&fw_entry, - FW_IMAGE_NAME, + tcm->hw_if->fw_name, tcm->pdev->dev.parent); if (retval < 0) { - LOGE("Fail to request %s\n", FW_IMAGE_NAME); + LOGE("Fail to request %s\n", tcm->hw_if->fw_name); return; } |