diff options
author | Thomas Zimmermann <tzimmermann@suse.de> | 2023-11-27 14:15:36 +0100 |
---|---|---|
committer | Thomas Zimmermann <tzimmermann@suse.de> | 2023-11-29 12:20:20 +0100 |
commit | eba1418968264cb3f83ff1ce78270ccc9a729c22 (patch) | |
tree | 8a544089e1c9da1fe15e0fab15533ffeb2b6dcbd /drivers/auxdisplay/cfag12864bfb.c | |
parent | 28f57d03f5a73ad7c5b07fd1414d816f15f7fb1d (diff) |
auxdisplay/cfag12864bfb: Set FBINFO_VIRTFB flag
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
Diffstat (limited to 'drivers/auxdisplay/cfag12864bfb.c')
-rw-r--r-- | drivers/auxdisplay/cfag12864bfb.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/auxdisplay/cfag12864bfb.c b/drivers/auxdisplay/cfag12864bfb.c index 729845bcc803..c0ba693845aa 100644 --- a/drivers/auxdisplay/cfag12864bfb.c +++ b/drivers/auxdisplay/cfag12864bfb.c @@ -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; |