From patchwork Fri May 27 14:44:22 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomi Valkeinen X-Patchwork-Id: 16076 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 1F95DBD161 for ; Fri, 27 May 2022 14:45:16 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 586196564D; Fri, 27 May 2022 16:45:13 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1653662713; bh=gB8wORxbh5RCxUzoZ/j9CClyLL96wF3CiB0KpQy77Fw=; h=To:Date:In-Reply-To:References:Subject:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=JOOW3pCOqAa9dr7YKMFzKdp9YhV6G2ZfOVMhOjNyq7fO9ACVKZOfMQCQkLW3PNd1E B8zWo05TP4rb+CXRa5zlVOADbBb2FH0gngfRwMVV06XY+getYvm4cqjjnIt92VPgYZ m8vy6wrA/P4SVNIro0xtEk7ryDVeUGykYx/7VbCZqYIFO4Xhr6NymNDOZtMQnyFtSy 085Qq1xY0dZNSmtxep3r3qJlJ4f594oxSYq5uXh7r3ARCHVPsC0ld393h31K8kjYik ttHoCBtPhi5IUmflhS8knkQoX+nz/6GoEjxi4lDGYMkq0at1jmRS56laQY7I4zPoj3 dDHeWCh7e9Jpw== 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 3E95A65637 for ; Fri, 27 May 2022 16:45:07 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="HK2kAtBB"; dkim-atps=neutral Received: from deskari.lan (91-156-85-209.elisa-laajakaista.fi [91.156.85.209]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 8855EFD1; Fri, 27 May 2022 16:45:06 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1653662706; bh=gB8wORxbh5RCxUzoZ/j9CClyLL96wF3CiB0KpQy77Fw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HK2kAtBBKCLS0LPZZUH9sooKYhbHt6BRZfOoGaNWyhU8D+x9zzMcB/Ph32WVp2V+Y jzbT3ZQG0StPLAr9hBn1I/0x7Vho5ECbJus5j9FhcFoSPrUa/Ts76V8H/kh60/Icsf oFSNCxnyui9b96tkOsB2RbCWT40qLisIohT5d5fw= To: libcamera-devel@lists.libcamera.org, David Plowman , Kieran Bingham , Laurent Pinchart , Jacopo Mondi Date: Fri, 27 May 2022 17:44:22 +0300 Message-Id: <20220527144447.94891-6-tomi.valkeinen@ideasonboard.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220527144447.94891-1-tomi.valkeinen@ideasonboard.com> References: <20220527144447.94891-1-tomi.valkeinen@ideasonboard.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v3 05/30] py: Fix None value in ControlType enum 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: , X-Patchwork-Original-From: Tomi Valkeinen via libcamera-devel From: Tomi Valkeinen Reply-To: Tomi Valkeinen Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" "None" is not a valid name for an enum value, so change it to "Null". Signed-off-by: Tomi Valkeinen Reviewed-by: Laurent Pinchart --- src/py/libcamera/py_enums.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/py/libcamera/py_enums.cpp b/src/py/libcamera/py_enums.cpp index e55318f1..96d4beef 100644 --- a/src/py/libcamera/py_enums.cpp +++ b/src/py/libcamera/py_enums.cpp @@ -22,7 +22,7 @@ void init_py_enums(py::module &m) .value("Viewfinder", StreamRole::Viewfinder); py::enum_(m, "ControlType") - .value("None", ControlType::ControlTypeNone) + .value("Null", ControlType::ControlTypeNone) .value("Bool", ControlType::ControlTypeBool) .value("Byte", ControlType::ControlTypeByte) .value("Integer32", ControlType::ControlTypeInteger32)