]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
hid/picolcd: Remove flag FBINFO_FLAG_DEFAULT from fbdev driver
authorThomas Zimmermann <tzimmermann@suse.de>
Sat, 15 Jul 2023 18:51:52 +0000 (20:51 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Mon, 24 Jul 2023 14:50:39 +0000 (16:50 +0200)
The flag FBINFO_FLAG_DEFAULT is 0 and has no effect, as struct
fbinfo.flags has been allocated to zero by framebuffer_alloc(). So do
not set it.

Flags should signal differences from the default values. After cleaning
up all occurrences of FBINFO_DEFAULT, the token will be removed.

v2:
* fix commit message (Miguel)

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Acked-by: Sam Ravnborg <sam@ravnborg.org>
Acked-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Acked-by: Bruno Prémont <bonbons@linux-vserver.org>
Cc: "Bruno Prémont" <bonbons@linux-vserver.org>
Cc: Jiri Kosina <jikos@kernel.org>
Cc: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230715185343.7193-11-tzimmermann@suse.de
drivers/hid/hid-picolcd_fb.c

index dabcd054dad94678e96d5b4aebd74f0639b832fc..d726aaafb14622739c023fe253b666b6ab80a418 100644 (file)
@@ -527,7 +527,6 @@ int picolcd_init_framebuffer(struct picolcd_data *data)
        info->var = picolcdfb_var;
        info->fix = picolcdfb_fix;
        info->fix.smem_len   = PICOLCDFB_SIZE*8;
-       info->flags = FBINFO_FLAG_DEFAULT;
 
        fbdata = info->par;
        spin_lock_init(&fbdata->lock);