]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
video: Mark truetype_measure() static
authorSimon Glass <sjg@chromium.org>
Mon, 2 Oct 2023 01:13:35 +0000 (19:13 -0600)
committerTom Rini <trini@konsulko.com>
Wed, 11 Oct 2023 19:43:55 +0000 (15:43 -0400)
This function is not used outside this file, so mark it static.

Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/video/console_truetype.c

index 242b8b71342d1c4e6e28496b772ee83c07edd64d..14fb81e9563cc6447dc749a0040d7727597f8be1 100644 (file)
@@ -718,8 +718,8 @@ static int truetype_select_font(struct udevice *dev, const char *name,
        return 0;
 }
 
-int truetype_measure(struct udevice *dev, const char *name, uint size,
-                    const char *text, struct vidconsole_bbox *bbox)
+static int truetype_measure(struct udevice *dev, const char *name, uint size,
+                           const char *text, struct vidconsole_bbox *bbox)
 {
        struct console_tt_metrics *met;
        stbtt_fontinfo *font;