From b03054000270bec4a4609401c34bbe9defaae311 Mon Sep 17 00:00:00 2001 From: Will McVicker Date: Sat, 10 Sep 2022 00:25:52 +0000 Subject: touch: common: fix double includes of heatmap.h Need to add an #ifndef check for this header to prevent double includes. Bug: 246007821 Test: verify touch on oriole Fixes: d307b1ba0326 ("ftm5: enable DMA mode") Signed-off-by: Will McVicker Change-Id: Ibe7f5c685820391990e776fff7d432532f1cc4a2 (cherry picked from commit 1fc68d4659cf586a825d2715d624eb360393505e) --- heatmap.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/heatmap.h b/heatmap.h index cc7a9da..21ddbd0 100644 --- a/heatmap.h +++ b/heatmap.h @@ -1,5 +1,8 @@ /* SPDX-License-Identifier: GPL-2.0 */ +#ifndef _HEATMAP_H_ +#define _HEATMAP_H_ + #include #include #include @@ -52,4 +55,6 @@ void heatmap_remove(struct v4l2_heatmap *v4l2); * This function should be called from the driver. Internally, it will call * read_frame(..) provided by the driver to read the actual data. */ -void heatmap_read(struct v4l2_heatmap *v4l2, uint64_t timestamp); \ No newline at end of file +void heatmap_read(struct v4l2_heatmap *v4l2, uint64_t timestamp); + +#endif // _HEATMAP_H_ -- cgit v1.2.3