summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSuper Liu <supercjliu@google.com>2019-03-20 12:01:19 +0800
committerSuper Liu <supercjliu@google.com>2019-03-20 12:01:19 +0800
commit2bc106b8f96e9e216c5c10a1c149068a6e46d732 (patch)
tree8dd022e94b638bad6fcf7155950c9d6af15d6d44
parentd792f9b2e019d330cd0bc310d5ee8dcee1bdb8df (diff)
downloadfts_touch-2bc106b8f96e9e216c5c10a1c149068a6e46d732.tar.gz
input: touchscreen: stm: remove spam logs for touch heatmap
For high frame rate heatmap reading, driver disable the report filter. This will cause unnecessary check at that time. Bug: 121266276 Change-Id: I00ea92f7a506911f538e2598a51c4d6038668236
-rw-r--r--fts.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/fts.c b/fts.c
index bfd086f..45d1ff8 100644
--- a/fts.c
+++ b/fts.c
@@ -3440,8 +3440,9 @@ static bool read_heatmap_raw(struct v4l2_heatmap *v4l2, strength_t *data)
* this could indicate slowness in the interrupt
* handler.
*/
- pr_warn("Heatmap frame has stale counter value %i",
- counter);
+ if (info->mf_state != FTS_MF_UNFILTERED)
+ pr_warn("Heatmap frame has stale counter value %i",
+ counter);
}
counter = report.counter;
num_elements = report.size_x * report.size_y;