summaryrefslogtreecommitdiff
path: root/src/v4l2/v4l2_camera_proxy.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:19:06 +0000
commit796210ecea8270cd870b0ef11833a26bfcf766cd (patch)
tree868e2b787d53c66f6eaaf67116ed191fe02bb8cf /src/v4l2/v4l2_camera_proxy.h
parent7e125787add066625bb2a3f8eed8234bc4f8cc11 (diff)
v4l2: 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/v4l2/v4l2_camera_proxy.h')
-rw-r--r--src/v4l2/v4l2_camera_proxy.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/v4l2/v4l2_camera_proxy.h b/src/v4l2/v4l2_camera_proxy.h
index 56a45bb7..fccec241 100644
--- a/src/v4l2/v4l2_camera_proxy.h
+++ b/src/v4l2/v4l2_camera_proxy.h
@@ -5,8 +5,7 @@
* v4l2_camera_proxy.h - Proxy to V4L2 compatibility camera
*/
-#ifndef __V4L2_CAMERA_PROXY_H__
-#define __V4L2_CAMERA_PROXY_H__
+#pragma once
#include <linux/videodev2.h>
#include <map>
@@ -100,5 +99,3 @@ private:
/* This mutex is to serialize access to the proxy. */
libcamera::Mutex proxyMutex_;
};
-
-#endif /* __V4L2_CAMERA_PROXY_H__ */