diff --git a/src/ipa/libipa/camera_sensor_helper.h b/src/ipa/libipa/camera_sensor_helper.h
index a7e4ab3b2af6..26adfcb5955f 100644
--- a/src/ipa/libipa/camera_sensor_helper.h
+++ b/src/ipa/libipa/camera_sensor_helper.h
@@ -4,8 +4,8 @@
  *
  * camera_sensor_helper.h - Helper class that performs sensor-specific parameter computations
  */
-#ifndef __LIBCAMERA_IPA_LIBIPA_CAMERA_SENSOR_HELPER_H__
-#define __LIBCAMERA_IPA_LIBIPA_CAMERA_SENSOR_HELPER_H__
+
+#pragma once
 
 #include <stdint.h>
 
@@ -85,5 +85,3 @@ static helper##Factory global_##helper##Factory;
 } /* namespace ipa */
 
 } /* namespace libcamera */
-
-#endif /* __LIBCAMERA_IPA_LIBIPA_CAMERA_SENSOR_HELPER_H__ */
diff --git a/src/ipa/libipa/histogram.h b/src/ipa/libipa/histogram.h
index c2761cb29e7a..c40a366bb38c 100644
--- a/src/ipa/libipa/histogram.h
+++ b/src/ipa/libipa/histogram.h
@@ -4,8 +4,8 @@
  *
  * histogram.h - histogram calculation interface
  */
-#ifndef __LIBCAMERA_IPA_LIBIPA_HISTOGRAM_H__
-#define __LIBCAMERA_IPA_LIBIPA_HISTOGRAM_H__
+
+#pragma once
 
 #include <assert.h>
 #include <limits.h>
@@ -36,5 +36,3 @@ private:
 } /* namespace ipa */
 
 } /* namespace libcamera */
-
-#endif /* __LIBCAMERA_IPA_LIBIPA_HISTOGRAM_H__ */
