summaryrefslogtreecommitdiff
path: root/src/libcamera/pipeline/raspberrypi/dma_heaps.h
diff options
context:
space:
mode:
authorKieran Bingham <kieran.bingham@ideasonboard.com>2021-11-23 17:23:07 +0000
committerKieran Bingham <kieran.bingham@ideasonboard.com>2021-11-24 12:18:26 +0000
commitb426b778c680a266d3c67e866fa07d81011bd16d (patch)
tree4b15e3bb0845b609c9d371cc3df8f59cb6405d18 /src/libcamera/pipeline/raspberrypi/dma_heaps.h
parentcc0b245096da68253dda94b3542a9387d73fda62 (diff)
libcamera: pipeline: Convert to pragma once
Remove the verbose #ifndef/#define/#endif pattern for maintaining header idempotency, and replace it with a simple #pragma once. This simplifies the headers, and prevents redundant changes when header files get moved. Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Jean-Michel Hautbois <jeanmichel.hautbois@ideasonboard.com>
Diffstat (limited to 'src/libcamera/pipeline/raspberrypi/dma_heaps.h')
-rw-r--r--src/libcamera/pipeline/raspberrypi/dma_heaps.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/libcamera/pipeline/raspberrypi/dma_heaps.h b/src/libcamera/pipeline/raspberrypi/dma_heaps.h
index 79f39c51..38dfc242 100644
--- a/src/libcamera/pipeline/raspberrypi/dma_heaps.h
+++ b/src/libcamera/pipeline/raspberrypi/dma_heaps.h
@@ -4,8 +4,8 @@
*
* dma_heaps.h - Helper class for dma-heap allocations.
*/
-#ifndef __LIBCAMERA_PIPELINE_RASPBERRYPI_DMA_HEAPS_H__
-#define __LIBCAMERA_PIPELINE_RASPBERRYPI_DMA_HEAPS_H__
+
+#pragma once
#include <libcamera/file_descriptor.h>
@@ -28,5 +28,3 @@ private:
} /* namespace RPi */
} /* namespace libcamera */
-
-#endif /* __LIBCAMERA_PIPELINE_RASPBERRYPI_DMA_HEAPS_H__ */