From 853bf6fae53f7fe09dacbc9cd6aec5d821f14c5f Mon Sep 17 00:00:00 2001 From: Tobias Poganiuch <tobias.poganiuch@garz-fricke.com> Date: Tue, 3 May 2022 13:02:23 +0200 Subject: [PATCH] ilitek: Fix indentation Fix the indentation of the ilitek driver. It creates a warning leading to an error and prevents the driver from being built. --- recipes-kernel/touchdriver/ilitek/src/ilitek_mp.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/recipes-kernel/touchdriver/ilitek/src/ilitek_mp.c b/recipes-kernel/touchdriver/ilitek/src/ilitek_mp.c index a48e1e5d..f051a657 100644 --- a/recipes-kernel/touchdriver/ilitek/src/ilitek_mp.c +++ b/recipes-kernel/touchdriver/ilitek/src/ilitek_mp.c @@ -2863,13 +2863,15 @@ static int32_t ilitek_benchmark_test_v6(int32_t *raw_data) { ilitek_data->mp.uni.ben[index].min_st = false; } } - tp_log_info("max:%d min:%d\n", ilitek_data->mp.uni.ben[0].max_st, ilitek_data->mp.uni.ben[0].min_st); + + tp_log_info("max:%d min:%d\n", ilitek_data->mp.uni.ben[0].max_st, ilitek_data->mp.uni.ben[0].min_st); + if(ilitek_data->mp.uni.bench_status == false) { - ret = ILITEK_FAIL; - tp_log_info("Uniformity benchmark test: FAIL\n"); - } - else - tp_log_info("Uniformity benchmark test: PASS\n"); + ret = ILITEK_FAIL; + tp_log_info("Uniformity benchmark test: FAIL\n"); + } else { + tp_log_info("Uniformity benchmark test: PASS\n"); + } return ret; } -- GitLab