From patchwork Tue Dec 22 16:15:26 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 10696 X-Patchwork-Delegate: laurent.pinchart@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 01C9FC0F1B for ; Tue, 22 Dec 2020 16:15:42 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 89E01615AC; Tue, 22 Dec 2020 17:15:41 +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="FdLfWlIh"; 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 965AA60528 for ; Tue, 22 Dec 2020 17:15:39 +0100 (CET) Received: from pendragon.lan (62-78-145-57.bb.dnainternet.fi [62.78.145.57]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 1277C2CF; Tue, 22 Dec 2020 17:15:38 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1608653739; bh=fauCoHZ8SEO5sH009VjXsikD3SKdJRGqbcI/Bdq1YBc=; h=From:To:Cc:Subject:Date:From; b=FdLfWlIhuAv6C0uTX24iH9OWKGw+JcWioRVy8fBcpdg86pCQgP50ucwdjHeNCZe7A fyjQawQjog0FWJftrO2S/c5PtflZOA6GenGv2h4EvjWDQy422rLWqmMjoYqU/qovTO p3Pho/P20cRmrsjgTNYbp6J5AtiWEJaztURQpb74= From: Laurent Pinchart To: libcamera-devel@lists.libcamera.org Date: Tue, 22 Dec 2020 18:15:26 +0200 Message-Id: <20201222161526.13841-1-laurent.pinchart@ideasonboard.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH] utils: gen-controls: Fix enumerators documentation 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" The Doxygen documentation for enumerators prefixes the enumerator name with the enumeration name. For unscoped enumerations, this is incorrect. Drop the scope. This fixes warnings produced by Doxygen when multiple enumerators with identical names are defined in different scopes. Signed-off-by: Laurent Pinchart Tested-by: Jacopo Mondi Reviewed-by: Niklas Söderlund --- utils/gen-controls.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Jacopo, I believe this should fix the issue you've experienced in your camera sensor database series. diff --git a/utils/gen-controls.py b/utils/gen-controls.py index 12a32eaaeee9..3f99b5e2ba7d 100755 --- a/utils/gen-controls.py +++ b/utils/gen-controls.py @@ -26,7 +26,7 @@ def generate_cpp(controls): enum_doc_start_template = string.Template('''/** * \\enum ${name}Enum * \\brief Supported ${name} values''') - enum_doc_value_template = string.Template(''' * \\var ${name}Enum::${value} + enum_doc_value_template = string.Template(''' * \\var ${value} ${description}''') doc_template = string.Template('''/** * \\var ${name}