summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWill McVicker <willmcvicker@google.com>2022-09-10 00:25:52 +0000
committerMason Wang <masonwang@google.com>2022-09-14 09:24:23 +0000
commitb03054000270bec4a4609401c34bbe9defaae311 (patch)
tree2df97aaafbb8f518d8791bfd0ed733b1d031a0b0
parentc790d30ac4e2d29b895b249bc99b9955777f3db8 (diff)
downloadcommon-b03054000270bec4a4609401c34bbe9defaae311.tar.gz
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 <willmcvicker@google.com> Change-Id: Ibe7f5c685820391990e776fff7d432532f1cc4a2 (cherry picked from commit 1fc68d4659cf586a825d2715d624eb360393505e)
-rw-r--r--heatmap.h7
1 files changed, 6 insertions, 1 deletions
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 <media/v4l2-device.h>
#include <media/v4l2-ioctl.h>
#include <media/videobuf2-v4l2.h>
@@ -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_