diff options
author | Steve Pfetsch <spfetsch@google.com> | 2023-08-29 16:17:46 -0700 |
---|---|---|
committer | Steve Pfetsch <spfetsch@google.com> | 2023-09-18 18:27:18 -0700 |
commit | 3d3bef214e624d88049a6d4baf631a9e36f192f4 (patch) | |
tree | 5d26f1a390f4f20153e3d903c476f618dd666a7b | |
parent | 5f2f4421b82de2543aec5a1f1ba68ccc063aa578 (diff) | |
download | goodix_touch-3d3bef214e624d88049a6d4baf631a9e36f192f4.tar.gz |
goodix: interactive calibration supportandroid-u-qpr1-beta-2.2_r0.7android-u-qpr1-beta-2.1_r0.8android-14.0.0_r0.45android-14.0.0_r0.38android-gs-shusky-5.15-u-qpr1-beta2android-gs-shusky-5.15-android14-qpr1-betaandroid-gs-shusky-5.15-android14-qpr1
Since device does not require calibration when a new panel is installed,
simply return success from the calibrate call.
Bug: 230050981
Change-Id: Iba6d196b8910dac755bbd2896e226c7346b0fea7
Signed-off-by: Steve Pfetsch <spfetsch@google.com>
-rw-r--r-- | goodix_ts_core.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/goodix_ts_core.c b/goodix_ts_core.c index f78b7fd..f73af5d 100644 --- a/goodix_ts_core.c +++ b/goodix_ts_core.c @@ -1052,6 +1052,15 @@ static int gti_ping(void *private_data, struct gti_ping_cmd *cmd) return cd->hw_ops->ping(cd); } +static int gti_calibrate(void *private_data, struct gti_calibrate_cmd *cmd) +{ + (void)private_data; + + /* Return successful calibration since there is nothing to do. */ + cmd->result = GTI_CALIBRATE_RESULT_DONE; + return 0; +} + static int gti_selftest(void *private_data, struct gti_selftest_cmd *cmd) { struct goodix_ts_core *cd = private_data; @@ -2713,6 +2722,7 @@ int goodix_ts_stage2_init(struct goodix_ts_core *cd) options->get_irq_mode = gti_get_irq_mode; options->reset = gti_reset; options->ping = gti_ping; + options->calibrate = gti_calibrate; options->selftest = gti_selftest; options->get_context_driver = gti_get_context_driver; options->set_report_rate = gti_set_report_rate; |