| Message ID | 20260120231814.2033069-16-sjg@u-boot.org |
|---|---|
| State | New |
| Headers |
Return-Path: <concept-bounces+u-boot-concept=u-boot.org@u-boot.org> X-Original-To: u-boot-concept@u-boot.org Delivered-To: u-boot-concept@u-boot.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1768951184; bh=xnLJXZPOcgOg9IgXDY8oOrfDdpINZ66V5cC6+OPsVoo=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=s95xzhTJiuuuOrbOi53m0bZ7ZMA68VhhoMBZU8A3QRyHVg0xaOy1D4O4lP+oqP31m Ucd2SYVWrA/TF9Bsd6h1I3ayBpOfiK4/hQJxYtpGt3ivT50DybTPPfCN3GqFdCtIWW JA48fPwUitVMVXV3JEpg2484gY+Duj6G45jIvJGvTkOgUsM8VOJV1s4O+E6dD13+HZ ev+qNsx/CxRI6J+s6UabOiY8dPW1+mir3zbnkd687ThS4UI2oPeIv0P4D6USqTNReH pnd+mZ6Ased8BmiWnQ13ryre/l0FnpJAzFmFq7wFgSBLiEcZhBNwXrufaBszNBfsGK EEpoGBEEnyk0g== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 93AA169572 for <u-boot-concept@u-boot.org>; Tue, 20 Jan 2026 16:19:44 -0700 (MST) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10024) with ESMTP id HbmgWQJG6PPq for <u-boot-concept@u-boot.org>; Tue, 20 Jan 2026 16:19:44 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1768951184; bh=xnLJXZPOcgOg9IgXDY8oOrfDdpINZ66V5cC6+OPsVoo=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=s95xzhTJiuuuOrbOi53m0bZ7ZMA68VhhoMBZU8A3QRyHVg0xaOy1D4O4lP+oqP31m Ucd2SYVWrA/TF9Bsd6h1I3ayBpOfiK4/hQJxYtpGt3ivT50DybTPPfCN3GqFdCtIWW JA48fPwUitVMVXV3JEpg2484gY+Duj6G45jIvJGvTkOgUsM8VOJV1s4O+E6dD13+HZ ev+qNsx/CxRI6J+s6UabOiY8dPW1+mir3zbnkd687ThS4UI2oPeIv0P4D6USqTNReH pnd+mZ6Ased8BmiWnQ13ryre/l0FnpJAzFmFq7wFgSBLiEcZhBNwXrufaBszNBfsGK EEpoGBEEnyk0g== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 818ED6957E for <u-boot-concept@u-boot.org>; Tue, 20 Jan 2026 16:19:44 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1768951182; bh=p9F1XMg+5jDirk55/1AVx2TMdutBJobJl1T1y8M71R4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=n0U/Dp1VnWNMRgobnzev4j+/UxBjajmh3Oba6OiYOSwbeoddt+bZhaHkrEc8tf3yv n7RUZoBpf8PISrnRQi3X86o/5BJFwuH1sla29olXCJEdJE0GxcQOTHS1+0sGi+T4zt ztqynRQeGtE83TQV6td7Qhp8KIIHpLHjBZIDxZ7xlb5W6ah9374Q/L5op9Q91Dbkwh +P3EXgCJTXlzhavXi8jlnAoju16K2q9/DpkFbYAwIfKQarxjxRdyv1h8VgzptMIDbA Ek/Mv/rCqA1geyOVfh4LjZwl9ka1CSR63u2Mn497uR7Z7IUqVierkHYZmTWjOdqbS4 wyhDpdH713bxA== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id C75CE69572; Tue, 20 Jan 2026 16:19:42 -0700 (MST) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10026) with ESMTP id I1pT4-KQgPdy; Tue, 20 Jan 2026 16:19:42 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1768951178; bh=VuGmP1E1Noi/ICJbSEBadn7rHGW7YTJubauVISHOkt4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=v3kPQVvBlezPK5oRteTNFi7kYhSRrsnu/xzoW5BprKl2+INjU/a5rgYBIUjzfESka meKs06cNZo4M6zt6DQx7+iVxLtfL2le28Yc4LHyS/iUVVXokzA9wXOMNbmW3rewv1m +A72i5MQSP96i2qLvcT27FrU4UevbTCpKg7nmJ3uMIF1Q1vvIEJK7rnLIjOfqBSJrr CTIufk3bqxMzFIsKhfftyTBzM0IKaZgUe4uiQyFmG41oZPCK43bW+7unHSGFcpuzC+ OjI83FYz9mklOQAw25udB5iN9dnGzw1Fnmm/JVCVGTmVjMTgURM3cVudZhOJuag1yn +ZmpI33HEYLyQ== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id 7EDA26913F; Tue, 20 Jan 2026 16:19:38 -0700 (MST) From: Simon Glass <sjg@u-boot.org> To: U-Boot Concept <concept@u-boot.org> Date: Tue, 20 Jan 2026 16:17:42 -0700 Message-ID: <20260120231814.2033069-16-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260120231814.2033069-1-sjg@u-boot.org> References: <20260120231814.2033069-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: 3522R5AHD7GRPLLAGVFIJOULSU3P35V7 X-Message-ID-Hash: 3522R5AHD7GRPLLAGVFIJOULSU3P35V7 X-MailFrom: sjg@u-boot.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Simon Glass <simon.glass@canonical.com>, "Claude Opus 4 . 5" <noreply@anthropic.com> X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH 15/36] video: Pass context to vidconsole_escape_char() List-Id: Discussion and patches related to U-Boot Concept <concept.u-boot.org> Archived-At: <https://lists.u-boot.org/archives/list/concept@u-boot.org/message/3522R5AHD7GRPLLAGVFIJOULSU3P35V7/> List-Archive: <https://lists.u-boot.org/archives/list/concept@u-boot.org/> List-Help: <mailto:concept-request@u-boot.org?subject=help> List-Owner: <mailto:concept-owner@u-boot.org> List-Post: <mailto:concept@u-boot.org> List-Subscribe: <mailto:concept-join@u-boot.org> List-Unsubscribe: <mailto:concept-leave@u-boot.org> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit |
| Series |
video: Add multiple-context support to vidconsole (part F)
|
|
Commit Message
Simon Glass
Jan. 20, 2026, 11:17 p.m. UTC
From: Simon Glass <simon.glass@canonical.com> Add a ctx parameter to the internal vidconsole_escape_char() function to allow passing in a specific vidconsole context. Co-developed-by: Claude Opus 4.5 <noreply@anthropic.com> Signed-off-by: Simon Glass <simon.glass@canonical.com> --- drivers/video/vidconsole-uclass.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/video/vidconsole-uclass.c b/drivers/video/vidconsole-uclass.c index cc244a3aad7..51db3200e86 100644 --- a/drivers/video/vidconsole-uclass.c +++ b/drivers/video/vidconsole-uclass.c @@ -194,10 +194,10 @@ static void get_cursor_position(struct vidconsole_priv *priv, * accumulated into escape_buf until the end of escape sequence is * found, at which point the sequence is parsed and processed. */ -static void vidconsole_escape_char(struct udevice *dev, char ch) +static void vidconsole_escape_char(struct udevice *dev, + struct vidconsole_ctx *ctx, char ch) { struct vidconsole_priv *priv = dev_get_uclass_priv(dev); - struct vidconsole_ctx *ctx = vidconsole_ctx_from_priv(priv); struct vidconsole_ansi *ansi = &ctx->ansi; if (!IS_ENABLED(CONFIG_VIDEO_ANSI)) @@ -497,7 +497,7 @@ int vidconsole_put_char(struct udevice *dev, char ch) vidconsole_hide_cursor(dev); if (ansi->escape) { - vidconsole_escape_char(dev, ch); + vidconsole_escape_char(dev, ctx, ch); return 0; }