]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
fbdev: Remove FBINFO_DEFAULT from static structs
authorThomas Zimmermann <tzimmermann@suse.de>
Sat, 15 Jul 2023 18:51:44 +0000 (20:51 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Mon, 24 Jul 2023 14:50:38 +0000 (16:50 +0200)
The flag FBINFO_DEFAULT is 0 and has no effect, as struct fbinfo.flags
has been allocated to zero by a static declaration. 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.

v4:
* clarify commit message (Geert, Dan)
v2:
* fix commit message (Miguel)

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Acked-by: Sam Ravnborg <sam@ravnborg.org>
Cc: Helge Deller <deller@gmx.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20230715185343.7193-3-tzimmermann@suse.de
drivers/video/fbdev/68328fb.c
drivers/video/fbdev/acornfb.c
drivers/video/fbdev/g364fb.c
drivers/video/fbdev/hpfb.c
drivers/video/fbdev/macfb.c
drivers/video/fbdev/maxinefb.c

index 07d6e8dc686bb483c9dc16a4e012db15bcc72c6c..956dd2399cc0bc1477c2a289b102e62b17220ccf 100644 (file)
@@ -448,7 +448,7 @@ static int __init mc68x328fb_init(void)
                fb_info.var.red.offset = fb_info.var.green.offset = fb_info.var.blue.offset = 0;
        }
        fb_info.pseudo_palette = &mc68x328fb_pseudo_palette;
-       fb_info.flags = FBINFO_DEFAULT | FBINFO_HWACCEL_YPAN;
+       fb_info.flags = FBINFO_HWACCEL_YPAN;
 
        if (fb_alloc_cmap(&fb_info.cmap, 256, 0))
                return -ENOMEM;
index 1b72edc01cfb58378c00c2a148685f35dfda1aab..8fec21dfca0974e7678c8ce9b60c098cfed70b32 100644 (file)
@@ -694,7 +694,7 @@ static void acornfb_init_fbinfo(void)
        first = 0;
 
        fb_info.fbops           = &acornfb_ops;
-       fb_info.flags           = FBINFO_DEFAULT | FBINFO_HWACCEL_YPAN;
+       fb_info.flags           = FBINFO_HWACCEL_YPAN;
        fb_info.pseudo_palette  = current_par.pseudo_palette;
 
        strcpy(fb_info.fix.id, "Acorn");
index c5b7673ddc6caf04f4e46ae0d2dc38f37c01fdb8..0825cbde116ec8fe7b84085254de6de5fcf44946 100644 (file)
@@ -219,7 +219,7 @@ int __init g364fb_init(void)
        fb_info.screen_base = (char *) G364_MEM_BASE;   /* virtual kernel address */
        fb_info.var = fb_var;
        fb_info.fix = fb_fix;
-       fb_info.flags = FBINFO_DEFAULT | FBINFO_HWACCEL_YPAN;
+       fb_info.flags = FBINFO_HWACCEL_YPAN;
 
        fb_alloc_cmap(&fb_info.cmap, 255, 0);
 
index 77fbff47b1a8ed11c1dcd717a7745cad664b466a..406c1383cbda9156b30f55f39872f8a771778daa 100644 (file)
@@ -287,7 +287,6 @@ static int hpfb_init_one(unsigned long phys_base, unsigned long virt_base)
        else
                strcat(fb_info.fix.id, "Catseye");
        fb_info.fbops = &hpfb_ops;
-       fb_info.flags = FBINFO_DEFAULT;
        fb_info.var   = hpfb_defined;
        fb_info.screen_base = (char *)fb_start;
 
index 44ff860a3f3783210d0b54f1444e0aa4e0f8dd05..5ca208d992cc3fb48897ce6355290ed8f529ddf9 100644 (file)
@@ -876,7 +876,6 @@ static int __init macfb_init(void)
        fb_info.var             = macfb_defined;
        fb_info.fix             = macfb_fix;
        fb_info.pseudo_palette  = pseudo_palette;
-       fb_info.flags           = FBINFO_DEFAULT;
 
        err = fb_alloc_cmap(&fb_info.cmap, video_cmap_len, 0);
        if (err)
index 4e6b05232ae2238159734e8d956a832ddd101442..0ac1873b2acbc7c68ccb8d52a17e8371ab063f47 100644 (file)
@@ -155,7 +155,6 @@ int __init maxinefb_init(void)
        fb_info.screen_base = (char *)maxinefb_fix.smem_start;
        fb_info.var = maxinefb_defined;
        fb_info.fix = maxinefb_fix;
-       fb_info.flags = FBINFO_DEFAULT;
 
        fb_alloc_cmap(&fb_info.cmap, 256, 0);