diff options
author | Mason Wang <masonwang@google.com> | 2022-02-26 09:51:01 +0800 |
---|---|---|
committer | Mason Wang <masonwang@google.com> | 2022-03-03 16:32:27 +0800 |
commit | befb9cf2d7462ff722ed519ca41ec2b6c9ab4d0c (patch) | |
tree | 5c0e6af72c0547831f83f354ebe19581c3582890 /ft3658/focaltech_core.c | |
parent | f4af6347c46b2285777b1dfc07de0fd525b3729f (diff) | |
download | focaltech_touch-befb9cf2d7462ff722ed519ca41ec2b6c9ab4d0c.tar.gz |
touch/focaltech: use dynamic debug log for offload.
Bug: 199105174
Test: Verify pass without a lot of error log when twoshay is not running.
Signed-off-by: Mason Wang <masonwang@google.com>
Change-Id: I6e63070c4db3cada05220a653c0e2f2e93aba02f
Diffstat (limited to 'ft3658/focaltech_core.c')
-rw-r--r-- | ft3658/focaltech_core.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/ft3658/focaltech_core.c b/ft3658/focaltech_core.c index 5efd0f6..03e606e 100644 --- a/ft3658/focaltech_core.c +++ b/ft3658/focaltech_core.c @@ -956,16 +956,15 @@ static void fts_irq_read_report(void) mutex_unlock(&ts_data->report_mutex); } #if IS_ENABLED(CONFIG_TOUCHSCREEN_OFFLOAD) - FTS_DEBUG("try to reserve a frame"); ret = touch_offload_reserve_frame(&ts_data->offload, &ts_data->reserved_frame); if (ret != 0) { - FTS_DEBUG("Could not reserve a frame: error=%d.\n", ret); + PR_LOGD("Could not reserve a frame: error=%d.\n", ret); /* Stop offload when there are no buffers available. */ fts_offload_set_running(ts_data, false); } else { fts_offload_set_running(ts_data, true); - FTS_DEBUG("reserve a frame ok"); + PR_LOGD("reserve a frame ok"); fts_populate_frame(ts_data); ret = touch_offload_queue_frame(&ts_data->offload, @@ -2182,11 +2181,11 @@ static int fts_parse_dt(struct device *dev, struct fts_ts_platform_data *pdata) ret = of_property_read_u8_array(np, "focaltech,touch_offload_id", offload_id, 4); if (ret == -EINVAL) { - dev_err(dev, - "Failed to read focaltech,touch_offload_id with error = %d\n", ret); + FTS_ERROR("Failed to read focaltech,touch_offload_id with error = %d\n", + ret); } else { pdata->offload_id = *(u32 *)offload_id; - dev_info(dev, "Offload device ID = \"%c%c%c%c\" / 0x%08X\n", + FTS_DEBUG("Offload device ID = \"%c%c%c%c\" / 0x%08X\n", offload_id[0], offload_id[1], offload_id[2], offload_id[3], pdata->offload_id); } |