diff options
author | Thomas Zimmermann <tzimmermann@suse.de> | 2023-11-27 14:15:32 +0100 |
---|---|---|
committer | Thomas Zimmermann <tzimmermann@suse.de> | 2023-11-29 12:20:11 +0100 |
commit | 63994d486c9fb5e780dabb0571c607c25d485421 (patch) | |
tree | 88d1d608c370c05214b779419ba2b3c9ac2d24d4 /drivers/video/fbdev/vfb.c | |
parent | fbdev/sm712fb: Use correct initializer macros for struct fb_ops (diff) | |
download | linux-63994d486c9fb5e780dabb0571c607c25d485421.tar.xz linux-63994d486c9fb5e780dabb0571c607c25d485421.zip |
fbdev/vfb: Set FBINFO_VIRTFB flag
The vfb 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>
Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20231127131655.4020-4-tzimmermann@suse.de
Diffstat (limited to '')
-rw-r--r-- | drivers/video/fbdev/vfb.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/video/fbdev/vfb.c b/drivers/video/fbdev/vfb.c index 1b7c338f9956..c748b9311fb1 100644 --- a/drivers/video/fbdev/vfb.c +++ b/drivers/video/fbdev/vfb.c @@ -440,6 +440,7 @@ static int vfb_probe(struct platform_device *dev) if (!info) goto err; + info->flags |= FBINFO_VIRTFB; info->screen_buffer = videomemory; info->fbops = &vfb_ops; |