Message ID | 20220527144447.94891-5-tomi.valkeinen@ideasonboard.com |
---|---|
State | Accepted |
Headers | show
Return-Path: <libcamera-devel-bounces@lists.libcamera.org> 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 42742C3256 for <parsemail@patchwork.libcamera.org>; Fri, 27 May 2022 14:45:15 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id B875D65642; Fri, 27 May 2022 16:45:12 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1653662712; bh=J82y7/1hXVMiwHUAH2A1Gwma14uw5Jc//aizDlp0V5U=; 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=rPZBgqhCP0yPMfhe4W/qodkHjl3Iw7TaLGAoc4jnsJvHKbpZ0FpUL5JEABDyjbp1w qPZX1WiCA3YBjjUNu2B1e4YMx+GCpi5bUkvuOtRcB3lLiyfOs0fNhkp2DSgC3yDUiO 9h8SbnBAugdG6SqRZMjNBOsO5RJ0nbto+MNuPpbcoBa7VeqwTza/4JWnJ43HjTxsmr W9FYWYaqOdWri9n8GwPyTydHPVIUZjkR8iHlnH5QYnzT97ohF/Y06Gb0ygJo2WKD4B H1Ihtl4+oJKFTuihwzSDLD5A3WGJ39cQysFOdWWUXf8s3WA/8eBN0d7rsPu5JqWtWY wiyOYdNs1H9ng== 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 8D731633A4 for <libcamera-devel@lists.libcamera.org>; Fri, 27 May 2022 16:45:06 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="NJexn7jI"; 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 0CD3DD80; 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=J82y7/1hXVMiwHUAH2A1Gwma14uw5Jc//aizDlp0V5U=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=NJexn7jIz28GyRFzhNrihZBRpCdn1KKQJEKMFiECe3+6RBJSNuyeYQogtU53vZFAH Zl886O3tsnae1KuBh/sTRY/qNClVMQkf0w3CoS1ztAqIyLoDn7GbDChZDTzigYYirR x/R05H8uG9+jk8PJZCAzrKBSF7qNGgPBftfinpO8= To: libcamera-devel@lists.libcamera.org, David Plowman <david.plowman@raspberrypi.com>, Kieran Bingham <kieran.bingham@ideasonboard.com>, Laurent Pinchart <laurent.pinchart@ideasonboard.com>, Jacopo Mondi <jacopo@jmondi.org> Date: Fri, 27 May 2022 17:44:21 +0300 Message-Id: <20220527144447.94891-5-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 Content-Transfer-Encoding: 8bit Subject: [libcamera-devel] [PATCH v3 04/30] py: Fix SceneFlicker enum values X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: <libcamera-devel.lists.libcamera.org> List-Unsubscribe: <https://lists.libcamera.org/options/libcamera-devel>, <mailto:libcamera-devel-request@lists.libcamera.org?subject=unsubscribe> List-Archive: <https://lists.libcamera.org/pipermail/libcamera-devel/> List-Post: <mailto:libcamera-devel@lists.libcamera.org> List-Help: <mailto:libcamera-devel-request@lists.libcamera.org?subject=help> List-Subscribe: <https://lists.libcamera.org/listinfo/libcamera-devel>, <mailto:libcamera-devel-request@lists.libcamera.org?subject=subscribe> From: Tomi Valkeinen via libcamera-devel <libcamera-devel@lists.libcamera.org> Reply-To: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com> Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" <libcamera-devel-bounces@lists.libcamera.org> |
Series |
|
Related |
show
|
diff --git a/src/py/libcamera/gen-py-control-enums.py b/src/py/libcamera/gen-py-control-enums.py index dcc28b1a..6b2b5362 100755 --- a/src/py/libcamera/gen-py-control-enums.py +++ b/src/py/libcamera/gen-py-control-enums.py @@ -42,6 +42,9 @@ def generate_py(controls): if name == 'LensShadingMapMode': prefix = 'LensShadingMapMode' + elif name == 'SceneFlicker': + # If we strip the prefix, we would get '50Hz', which is illegal name + prefix = '' else: prefix = find_common_prefix([e['name'] for e in enum])