From patchwork Wed Sep 30 07:32:07 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Umang Jain X-Patchwork-Id: 9870 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 1CDB4C3B5B for ; Wed, 30 Sep 2020 07:32:15 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id ADF3462209; Wed, 30 Sep 2020 09:32:14 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=uajain.com header.i=@uajain.com header.b="lLarPE4g"; dkim-atps=neutral Received: from mail.uajain.com (static.126.159.217.95.clients.your-server.de [95.217.159.126]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id EEC4860A0F for ; Wed, 30 Sep 2020 09:32:13 +0200 (CEST) From: Umang Jain DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=uajain.com; s=mail; t=1601451133; bh=/dKqQK8tdyBG16HOEe/IP0872NTwjrrQEY6cDVMiVMg=; h=From:To:Cc:Subject; b=lLarPE4gw0+SaT9KQZq2Am0wxLrgf7o4vFPNQnu6qg2HbNYW8Dzto68P4UnPDsKs/ FidRVF2VoIJLrRGAR1ks9eK32OL1Bfmi9NliMCXkoqT/w2CexsieBeofYAgfxft4L9 al0LXhijfodYMLsdRoLeg6+teriyOaD2j84VmT4t3AMiYRHv/f/T+ithvFFUz4foq5 cgcr66CniXoAA1F+yjSnTlKBmGUz1sHmlkjJek+v4ESSRwNu9CqRE05GoRTiBf+uEn GFygTO7Or877A/OAcl7V0NltzPTpwYFNJTXGcqTcHBjoxnW+Z1HH97gffwF1gh/ipM uWa5slqIHhs/A== To: libcamera-devel@lists.libcamera.org Date: Wed, 30 Sep 2020 13:02:07 +0530 Message-Id: <20200930073207.24035-1-email@uajain.com> Mime-Version: 1.0 Subject: [libcamera-devel] [PATCH] Documentation: guides: pipeline-handler: Update clamp() namespace 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" Update the sample code using utils::clamp() to std::clamp(). Fixes: f2734ff3ab09 ("libcamera: Replace utils::clamp() with std::clamp()") Signed-off-by: Umang Jain Reviewed-by: Kieran Bingham Reviewed-by: Jacopo Mondi --- Documentation/guides/pipeline-handler.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/guides/pipeline-handler.rst b/Documentation/guides/pipeline-handler.rst index 746e206..71ef205 100644 --- a/Documentation/guides/pipeline-handler.rst +++ b/Documentation/guides/pipeline-handler.rst @@ -1289,7 +1289,7 @@ range definitions and their corresponding values on the device before being set. } int32_t value = lroundf(it.second.get() * 128 + offset); - controls.set(cid, utils::clamp(value, 0, 255)); + controls.set(cid, std::clamp(value, 0, 255)); } for (const auto &ctrl : controls)