]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
auxdisplay/cfag12864bfb: Set FBINFO_VIRTFB flag
authorThomas Zimmermann <tzimmermann@suse.de>
Mon, 27 Nov 2023 13:15:36 +0000 (14:15 +0100)
committerThomas Zimmermann <tzimmermann@suse.de>
Wed, 29 Nov 2023 11:20:20 +0000 (12:20 +0100)
The cfag12864bfb driver operates on system memory. Mark the framebuffer
accordingly. Helpers operating on the framebuffer memory will test for
the presence of this flag.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Cc: Miguel Ojeda <ojeda@kernel.org>
Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Acked-by: Miguel Ojeda <ojeda@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20231127131655.4020-8-tzimmermann@suse.de
drivers/auxdisplay/cfag12864bfb.c

index 729845bcc803afebb3ffec6bdab24b6f77f0e6cd..c0ba693845aafd329a77f087e414cb98ca44cbbe 100644 (file)
@@ -72,6 +72,7 @@ static int cfag12864bfb_probe(struct platform_device *device)
        if (!info)
                goto none;
 
+       info->flags = FBINFO_VIRTFB;
        info->screen_buffer = cfag12864b_buffer;
        info->screen_size = CFAG12864B_SIZE;
        info->fbops = &cfag12864bfb_ops;