From: Thomas Zimmermann Date: Sat, 15 Jul 2023 18:51:52 +0000 (+0200) Subject: hid/picolcd: Remove flag FBINFO_FLAG_DEFAULT from fbdev driver X-Git-Tag: Ubuntu-6.8.0-17.17~2646^2~19^2~26 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=8bf3ea7d7bd17e0a62c5e73341926c29adad4fd0;p=mirror_ubuntu-kernels.git hid/picolcd: Remove flag FBINFO_FLAG_DEFAULT from fbdev driver 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 Acked-by: Sam Ravnborg Acked-by: Benjamin Tissoires Acked-by: Bruno Prémont Cc: "Bruno Prémont" Cc: Jiri Kosina Cc: Benjamin Tissoires Link: https://patchwork.freedesktop.org/patch/msgid/20230715185343.7193-11-tzimmermann@suse.de --- diff --git a/drivers/hid/hid-picolcd_fb.c b/drivers/hid/hid-picolcd_fb.c index dabcd054dad9..d726aaafb146 100644 --- a/drivers/hid/hid-picolcd_fb.c +++ b/drivers/hid/hid-picolcd_fb.c @@ -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);