From patchwork Wed Apr 17 09:51:12 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kieran Bingham X-Patchwork-Id: 19891 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 9039EBE08B for ; Wed, 17 Apr 2024 09:51:20 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id B473C63352; Wed, 17 Apr 2024 11:51:19 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="I2an/6qN"; dkim-atps=neutral Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 2192961C15 for ; Wed, 17 Apr 2024 11:51:17 +0200 (CEST) Received: from Monstersaurus.local (cpc89244-aztw30-2-0-cust6594.18-1.cable.virginm.net [86.31.185.195]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 01793DD9; Wed, 17 Apr 2024 11:50:29 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1713347430; bh=Ak7/7B/vxxtntgy0zgxPa2KRAX7QR9kTm1Z2BZuUcco=; h=From:To:Cc:Subject:Date:From; b=I2an/6qNR+F+gk2q39j/7aMZvJZSZPUIk2ldEpExons9ui0TR/jGTZsL4KJM0E6zq xTSQoWlQ4OzMJgZ5TN9hccp3xt87jspnaRgb3lia3h3tDPnBrvqGdqO44SA9Io/oFi rEWKmVYNE6sQOWnDPoYwOgcjW1FlhIYA4Sjdt51Y= From: Kieran Bingham To: libcamera devel Cc: Kieran Bingham Subject: [PATCH] Documentation: coding-style: Clean up header guard style Date: Wed, 17 Apr 2024 10:51:12 +0100 Message-Id: <20240417095112.1718987-1-kieran.bingham@ideasonboard.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 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" Header guards were replaced by pragma once calls with commits 0a64cf8b7645 ("libcamera: Convert to pragma once") through to 796210ecea82 ("v4l2: Convert to pragma once") Update the coding style to reflect the updated header guard style. Signed-off-by: Kieran Bingham Reviewed-by: Stefan Klug Reviewed-by: Laurent Pinchart --- Documentation/coding-style.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/coding-style.rst b/Documentation/coding-style.rst index 053fdd998351..72cb28d25189 100644 --- a/Documentation/coding-style.rst +++ b/Documentation/coding-style.rst @@ -59,7 +59,7 @@ document: underscores in between * All formatting rules specified in the selected sections of the Linux kernel Code Style for indentation, braces, spacing, etc -* Header guards are formatted as '__LIBCAMERA_FILE_NAME_H__' +* Headers are guarded by the use of '#pragma once' Order of Includes ~~~~~~~~~~~~~~~~~