From patchwork Tue Nov 23 22:40:10 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kieran Bingham X-Patchwork-Id: 14743 X-Patchwork-Delegate: kieran.bingham@ideasonboard.com Return-Path: X-Original-To: parsemail@patchwork.libcamera.org Delivered-To: parsemail@patchwork.libcamera.org Received: from lancelot.ideasonboard.com (lancelot.ideasonboard.com [92.243.16.209]) by patchwork.libcamera.org (Postfix) with ESMTPS id 0F180C324F for ; Tue, 23 Nov 2021 22:40:40 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id A6B1B60490; Tue, 23 Nov 2021 23:40:39 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="kZWmxSj+"; dkim-atps=neutral Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id E4972603CB for ; Tue, 23 Nov 2021 23:40:22 +0100 (CET) Received: from Monstersaurus.ksquared.org.uk.beta.tailscale.net (cpc89244-aztw30-2-0-cust3082.18-1.cable.virginm.net [86.31.172.11]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 98E0FF95; Tue, 23 Nov 2021 23:40:22 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1637707222; bh=60gufxY7DkGItsfTltIp3x7DFWUCjtNaXeRIMh430cg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kZWmxSj+M80thpXqLm4bJMhaXLQHEsQ1uUx+ALHsOXkeqcblonyjpcHCMAVRlguVd sX/tMLV10dlkq/t0zwxtl839GZa0DHTDGWvo28t6aOU80ZaX5OcL5HGc20QjXyAh30 LK9885fwOcAKMQjy4usD7jgD3GfZ2aCcoL4cd8Pg= From: Kieran Bingham To: libcamera devel Date: Tue, 23 Nov 2021 22:40:10 +0000 Message-Id: <20211123224015.3619282-11-kieran.bingham@ideasonboard.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20211123224015.3619282-1-kieran.bingham@ideasonboard.com> References: <20211123224015.3619282-1-kieran.bingham@ideasonboard.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 10/15] ipa: libipa: Convert to pragma once X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" 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 --- src/ipa/libipa/camera_sensor_helper.h | 6 ++---- src/ipa/libipa/histogram.h | 6 ++---- 2 files changed, 4 insertions(+), 8 deletions(-) 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 @@ -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 #include @@ -36,5 +36,3 @@ private: } /* namespace ipa */ } /* namespace libcamera */ - -#endif /* __LIBCAMERA_IPA_LIBIPA_HISTOGRAM_H__ */