| Message ID | 20260120231814.2033069-15-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=1768951179; bh=VFZMJVGGgMH6FrD2QIzjWOi1jMNhYIh48k0aipRqLYk=; 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=of4tSKu6vWGoZoshPLFiMbEaw9UYbtAyOtFGM64mtFb3D4skKrRsKztd+AdJBHN8V 1WFgg89trCgl1HO59pzcUbyPyJEjdzsIpt/k3noXx7L7WpuRBxhHgXRAuPbg5UMRbV Ux6QJbprCQaFknQNbK9J5ONw9Ipt7Z7Trboy+Jw38CE2ysdsvA3MvMvfxjIzU91DK4 oBy21iv4ZYNc5/b31A3mEW4LJhpHMV7outenMLwkPH7QJuwQfneokoGgFBOgWiObHj dudIUQiAOcLoiieKyHKJ7BxUYPuCYlZbi/PSHCjuHpooiSGdpbuXmR/AwAMC2bpZo0 Fb16bdHglqdeA== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 209D86958D for <u-boot-concept@u-boot.org>; Tue, 20 Jan 2026 16:19:39 -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 fy1xD5F_UUoK for <u-boot-concept@u-boot.org>; Tue, 20 Jan 2026 16:19:39 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1768951179; bh=VFZMJVGGgMH6FrD2QIzjWOi1jMNhYIh48k0aipRqLYk=; 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=of4tSKu6vWGoZoshPLFiMbEaw9UYbtAyOtFGM64mtFb3D4skKrRsKztd+AdJBHN8V 1WFgg89trCgl1HO59pzcUbyPyJEjdzsIpt/k3noXx7L7WpuRBxhHgXRAuPbg5UMRbV Ux6QJbprCQaFknQNbK9J5ONw9Ipt7Z7Trboy+Jw38CE2ysdsvA3MvMvfxjIzU91DK4 oBy21iv4ZYNc5/b31A3mEW4LJhpHMV7outenMLwkPH7QJuwQfneokoGgFBOgWiObHj dudIUQiAOcLoiieKyHKJ7BxUYPuCYlZbi/PSHCjuHpooiSGdpbuXmR/AwAMC2bpZo0 Fb16bdHglqdeA== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 100106957E for <u-boot-concept@u-boot.org>; Tue, 20 Jan 2026 16:19:39 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1768951178; bh=tLU4hhZpO1Flbf7j39DgSATsaJgMKfpvVzcqz5L9YnA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HrgXmsTsFmaccAKYJFLU0VYB1tAYB3OKcKGrGwlOYr/VXOAY4PZM3xvkLnyGNk8df VfINAMpXVHVB1MkM4v6RuSormILTllkhVb7gIPkYZCyOGu52PpXM/O1FRn+wWZAqxs KketD6G2HEYYenCT2+qW3zSMhiFbl+xihoVwDGNT9INoYNyAie4gjIfQ+d/DAtQ5L4 kTNDXAQPFcjAe2s8k6oeOfnoMd+5wadHtUF9s42vDfonJw1CvzwrIF6cDLSsho+/+p lwMr4ZSbQWbeqkVgaNmW1AyUxsMX8P5vMsNCkNakmvilOECTwTskCxvZgTeCmp5w/u 1sxNM29npIMcw== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 0832069572; Tue, 20 Jan 2026 16:19:38 -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 8F9RePWF0IVG; Tue, 20 Jan 2026 16:19:37 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1768951174; bh=7/pfM64jOnwUY3yhP9FBN8Yp9lusM4NzHZnPALpT8ac=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZyVGRKAVQr1u5IeK/r6X/ZmZWd7kPZ+AVGvw76lvp7RAu0HNh02DViO+kNC6fFoTz KfdFccam85x2OVJNIQ0eITayU47XWkgueaFEz+jcPEBDdfDlQCtYUUrW/HfRJWFOfU wImLKoZMxKcAkZOGuMz8fvuE2G3pYKmCCDvXs1zfX4Ksa+AkwXMu+aWgaukIe9LGna 9zOYsORV96LyALW8J4hTSceq4WCbXQd7pTaAteC3YVIEK3O45JXh0EXyu6mgOvrjAy 6SrIbW+coFCtdC89F18K1p5z3XYvOoPwporX78POGFxW+gVe43ihc7jNlisoagRcUV SW6a1tb4I2dZQ== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id AFF436913F; Tue, 20 Jan 2026 16:19:33 -0700 (MST) From: Simon Glass <sjg@u-boot.org> To: U-Boot Concept <concept@u-boot.org> Date: Tue, 20 Jan 2026 16:17:41 -0700 Message-ID: <20260120231814.2033069-15-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: JENZL3HG2GZU4LSB27ILTHYMQPYSSG3E X-Message-ID-Hash: JENZL3HG2GZU4LSB27ILTHYMQPYSSG3E 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 14/36] video: Pass context to vidconsole_output_glyph() 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/JENZL3HG2GZU4LSB27ILTHYMQPYSSG3E/> 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_output_glyph() 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 | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/drivers/video/vidconsole-uclass.c b/drivers/video/vidconsole-uclass.c index ec78068f734..cc244a3aad7 100644 --- a/drivers/video/vidconsole-uclass.c +++ b/drivers/video/vidconsole-uclass.c @@ -454,10 +454,9 @@ error: } /* Put that actual character on the screen (using the UTF-32 code points). */ -static int vidconsole_output_glyph(struct udevice *dev, int ch) +static int vidconsole_output_glyph(struct udevice *dev, + struct vidconsole_ctx *ctx, int ch) { - struct vidconsole_priv *priv = dev_get_uclass_priv(dev); - struct vidconsole_ctx *ctx = vidconsole_ctx_from_priv(priv); int ret; if (_DEBUG) { @@ -473,7 +472,8 @@ static int vidconsole_output_glyph(struct udevice *dev, int ch) ret = vidconsole_putc_xy(dev, ctx, ctx->xcur_frac, ctx->ycur, ch); if (ret == -EAGAIN) { vidconsole_newline(dev, ctx); - ret = vidconsole_putc_xy(dev, ctx, ctx->xcur_frac, ctx->ycur, ch); + ret = vidconsole_putc_xy(dev, ctx, ctx->xcur_frac, ctx->ycur, + ch); } if (ret < 0) return ret; @@ -535,7 +535,7 @@ int vidconsole_put_char(struct udevice *dev, char ch) } else { cp = ch; } - ret = vidconsole_output_glyph(dev, cp); + ret = vidconsole_output_glyph(dev, ctx, cp); if (ret < 0) return ret; break;