Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 62767C3DA7A for ; Fri, 6 Jan 2023 14:56:30 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 38D638561D; Fri, 6 Jan 2023 15:53:52 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="NwRozoXB"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id B022B855C7; Fri, 6 Jan 2023 15:53:32 +0100 (CET) Received: from mail-il1-x131.google.com (mail-il1-x131.google.com [IPv6:2607:f8b0:4864:20::131]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id A7A0885612 for ; Fri, 6 Jan 2023 15:53:00 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-il1-x131.google.com with SMTP id i16so564113ilq.9 for ; Fri, 06 Jan 2023 06:53:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=0th3cYTEX62m4YWNq7RUeMU5CSvVDwEOPyJ5e7e35gU=; b=NwRozoXBwY7a3Xl4XWJy19n0+e/XdoqpcRUNgVDgNMrWvEJF/evvmgx+gbVe82XCh+ oVKD3dcmy2bPtfle1w/P8ibFHFKUZ/gesqb1hmsZEUd+2d09Y7Aj62tsGVyoQ1FR7Cjl OygjJv2eVDHcN1RoWj812wIy3yvvKXYk3UA54= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=0th3cYTEX62m4YWNq7RUeMU5CSvVDwEOPyJ5e7e35gU=; b=10YQggmzgmf+40kqlwWT6IVqPe1PS77CRKgdL9rwQxrSFjDotWWqbcqaJp75lbHN1u 8xLFH0R1Eb1Kg2euXXJTEGzg2rcJnB1Hx33eTpMmoV1SfQCAQAjDTBqt5aoLngjdB9y5 F1MOB/jEnwazyi/MsLedViCqKrf3k0gsPcwqHAdmW6GW32bVFGipnNW5dGb8xjg74bHe jNiYnf/ZcIGC1eL+0+BBJU1y9QrMIoY46fXkiw3UPTH3gxzzk0yXJtElbgPHw22PKWEI /x2wTz7YWkmGlFOrF60DKhPPw/BZqET8TD3glKB/8EvzcImmFvjC4JSN3OvH4N/mXsBX jABg== X-Gm-Message-State: AFqh2kqdATbWGnFd/JWAUoI1aojJWfOokUWXXbA8c85e4HCwfpjo1gi5 XX6zSDYWATV3lEb05DtllfwElGift7nJaWws+Do= X-Google-Smtp-Source: AMrXdXszcU2q7nS1wAOwAWQAQLJ/uOa3AcaozZF8HNFMlEeNlywU92bAzyfkR9Y6mVAQHISS1TRK9w== X-Received: by 2002:a92:cf4f:0:b0:30d:7453:940 with SMTP id c15-20020a92cf4f000000b0030d74530940mr5638206ilr.11.1673016780103; Fri, 06 Jan 2023 06:53:00 -0800 (PST) Received: from sjg1.lan (c-71-56-217-229.hsd1.co.comcast.net. [71.56.217.229]) by smtp.gmail.com with ESMTPSA id w20-20020a05663800d400b00375783003fcsm360273jao.136.2023.01.06.06.52.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Jan 2023 06:52:59 -0800 (PST) From: Simon Glass To: U-Boot Mailing List Cc: Anatolij Gustschin , Tom Rini , Heinrich Schuchardt , Simon Glass Subject: [PATCH v3 12/25] video: truetype: Rename the metrics function Date: Fri, 6 Jan 2023 08:52:30 -0600 Message-Id: <20230106145243.411626-13-sjg@chromium.org> X-Mailer: git-send-email 2.39.0.314.g84b9a713c41-goog In-Reply-To: <20230106145243.411626-1-sjg@chromium.org> References: <20230106145243.411626-1-sjg@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean This should really have a 'truetype' prefix. Fix it. Signed-off-by: Simon Glass --- (no changes since v1) drivers/video/console_truetype.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/video/console_truetype.c b/drivers/video/console_truetype.c index 6859c9fa116..4abc0bc2ff1 100644 --- a/drivers/video/console_truetype.c +++ b/drivers/video/console_truetype.c @@ -595,7 +595,7 @@ void vidconsole_list_fonts(void) } /** - * vidconsole_add_metrics() - Add a new font/size combination + * truetype_add_metrics() - Add a new font/size combination * * @dev: Video console device to update * @font_name: Name of font @@ -604,8 +604,8 @@ void vidconsole_list_fonts(void) * @return 0 if OK, -EPERM if stbtt failed, -E2BIG if the the metrics table is * full */ -static int vidconsole_add_metrics(struct udevice *dev, const char *font_name, - uint font_size, const void *font_data) +static int truetype_add_metrics(struct udevice *dev, const char *font_name, + uint font_size, const void *font_data) { struct console_tt_priv *priv = dev_get_priv(dev); struct console_tt_metrics *met; @@ -693,7 +693,7 @@ int vidconsole_select_font(struct udevice *dev, const char *name, uint size) !strcmp(name, tab->name)) { int ret; - ret = vidconsole_add_metrics(dev, + ret = truetype_add_metrics(dev, tab->name, size, tab->begin); if (ret < 0) return log_msg_ret("add", ret); @@ -745,7 +745,7 @@ static int console_truetype_probe(struct udevice *dev) return -EBFONT; } - ret = vidconsole_add_metrics(dev, tab->name, font_size, tab->begin); + ret = truetype_add_metrics(dev, tab->name, font_size, tab->begin); if (ret < 0) return log_msg_ret("add", ret); priv->cur_met = &priv->metrics[ret]; -- 2.39.0.314.g84b9a713c41-goog