]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
fbcon: Fix outdated registered_fb reference in comment
authorShixiong Ou <oushixiong@kylinos.cn>
Wed, 9 Jul 2025 10:34:38 +0000 (18:34 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 15 Aug 2025 14:38:45 +0000 (16:38 +0200)
[ Upstream commit 0f168e7be696a17487e83d1d47e5a408a181080f ]

The variable was renamed to fbcon_registered_fb, but this comment was
not updated along with the change. Correct it to avoid confusion.

Signed-off-by: Shixiong Ou <oushixiong@kylinos.cn>
Fixes: efc3acbc105a ("fbcon: Maintain a private array of fb_info")
[sima: Add Fixes: line.]
Signed-off-by: Simona Vetter <simona.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20250709103438.572309-1-oushixiong1025@163.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/video/fbdev/core/fbcon.c

index 2df48037688d1df5a2754d3d8b82f7fc418f6960..2b2d36c021ba5511c3b2a08b486b0aa0bee142dc 100644 (file)
@@ -952,13 +952,13 @@ static const char *fbcon_startup(void)
        int rows, cols;
 
        /*
-        *  If num_registered_fb is zero, this is a call for the dummy part.
+        *  If fbcon_num_registered_fb is zero, this is a call for the dummy part.
         *  The frame buffer devices weren't initialized yet.
         */
        if (!fbcon_num_registered_fb || info_idx == -1)
                return display_desc;
        /*
-        * Instead of blindly using registered_fb[0], we use info_idx, set by
+        * Instead of blindly using fbcon_registered_fb[0], we use info_idx, set by
         * fbcon_fb_registered();
         */
        info = fbcon_registered_fb[info_idx];