diff options
author | Will McVicker <willmcvicker@google.com> | 2022-09-10 00:25:52 +0000 |
---|---|---|
committer | Mason Wang <masonwang@google.com> | 2022-09-14 09:24:23 +0000 |
commit | b03054000270bec4a4609401c34bbe9defaae311 (patch) | |
tree | 2df97aaafbb8f518d8791bfd0ed733b1d031a0b0 | |
parent | c790d30ac4e2d29b895b249bc99b9955777f3db8 (diff) | |
download | common-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.h | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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_ |