summaryrefslogtreecommitdiff
path: root/include/libcamera/internal/v4l2_subdevice.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:17 +0000
commitdf131ad088930258ad380b515b5ddfd96a92d8b6 (patch)
tree403b9342b4335117abdcbb3ea7911a00e2d7087b /include/libcamera/internal/v4l2_subdevice.h
parent0701f756b98b7b4d2e882f2f5aee9d160ebeba72 (diff)
libcamera: internal: 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. Tracepoints.h.in is not modified to use the pragma as it requires self-inclusion. 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 'include/libcamera/internal/v4l2_subdevice.h')
-rw-r--r--include/libcamera/internal/v4l2_subdevice.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/include/libcamera/internal/v4l2_subdevice.h b/include/libcamera/internal/v4l2_subdevice.h
index 97b89fb9..484fcfdd 100644
--- a/include/libcamera/internal/v4l2_subdevice.h
+++ b/include/libcamera/internal/v4l2_subdevice.h
@@ -4,8 +4,8 @@
*
* v4l2_subdevice.h - V4L2 Subdevice
*/
-#ifndef __LIBCAMERA_INTERNAL_V4L2_SUBDEVICE_H__
-#define __LIBCAMERA_INTERNAL_V4L2_SUBDEVICE_H__
+
+#pragma once
#include <memory>
#include <string>
@@ -78,5 +78,3 @@ private:
};
} /* namespace libcamera */
-
-#endif /* __LIBCAMERA_INTERNAL_V4L2_SUBDEVICE_H__ */