mirror of
https://github.com/torvalds/linux.git
synced 2024-11-26 22:21:42 +00:00
hid/picolcd_fb: Set FBINFO_VIRTFB flag
The picolcd_fb 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: "Bruno Prémont" <bonbons@linux-vserver.org> Cc: Jiri Kosina <jikos@kernel.org> Cc: Benjamin Tissoires <benjamin.tissoires@redhat.com> Cc: linux-input@vger.kernel.org Reviewed-by: Javier Martinez Canillas <javierm@redhat.com> Acked-by: Bruno Prémont <bonbons@linux-vserver.org> Acked-by: Jiri Kosina <jkosina@suse.cz> Link: https://patchwork.freedesktop.org/patch/msgid/20231127131655.4020-12-tzimmermann@suse.de
This commit is contained in:
parent
df558d5313
commit
bc4e90771c
@ -505,6 +505,7 @@ int picolcd_init_framebuffer(struct picolcd_data *data)
|
||||
dev_err(dev, "can't get a free page for framebuffer\n");
|
||||
goto err_nomem;
|
||||
}
|
||||
info->flags |= FBINFO_VIRTFB;
|
||||
info->screen_buffer = fbdata->bitmap;
|
||||
info->fix.smem_start = (unsigned long)fbdata->bitmap;
|
||||
memset(fbdata->vbitmap, 0xff, PICOLCDFB_SIZE);
|
||||
|
Loading…
Reference in New Issue
Block a user