diff options
author | davidycchen <davidycchen@google.com> | 2021-06-07 19:38:26 +0800 |
---|---|---|
committer | davidycchen <davidycchen@google.com> | 2021-06-08 09:33:37 +0800 |
commit | 7b53da6fbd387f5e6091c792a267da7199c271f5 (patch) | |
tree | eec7eaa50cb4ecb1c25fb964870822106a34b13d | |
parent | 4267ff366824f0049bf39ce78ea5668a3200af5d (diff) | |
download | common-android-gs-raviole-5.10-android12L.tar.gz |
touch: common: modify the return value when register_tbn failedandroid-s-v2-beta-3_r0.6android-12.1.0_r0.6android-12.1.0_r0.22android-12.1.0_r0.16android-12.0.0_r0.9android-12.0.0_r0.8android-12.0.0_r0.42android-12.0.0_r0.36android-12.0.0_r0.26android-12.0.0_r0.17android-12.0.0_r0.16android-gs-raviole-5.10-s-v2-beta-3android-gs-raviole-5.10-android12Landroid-gs-raviole-5.10-android12-qpr1-dandroid-gs-raviole-5.10-android12-d1
Return 0 when the tbn_context doesn't exist because tbn is not an
always on feature.
Bug: 186717670
Bug: 190339589
Test: flash boot and vendor_boot.
Signed-off-by: davidycchen <davidycchen@google.com>
Change-Id: I4a842b53b4efaa89116ecedbabd82bbf1a311e71
-rw-r--r-- | touch_bus_negotiator.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/touch_bus_negotiator.c b/touch_bus_negotiator.c index e7071b7..0bfbeab 100644 --- a/touch_bus_negotiator.c +++ b/touch_bus_negotiator.c @@ -183,8 +183,10 @@ int register_tbn(u32 *output) { u32 i = 0; - if (!tbn_context) - return -ENODEV; + if (!tbn_context) { + pr_warn("%s: tbn_context doesn't exist.", __func__); + return 0; + } mutex_lock(&tbn_context->dev_mask_mutex); for (i = 0; i < tbn_context->max_devices; i++) { |