lkml.org 
[lkml]   [2023]   [Jul]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 16/17] fbdev/pxafb: Remove flag FBINFO_FLAG_DEFAULT
    Date
    The flag FBINFO_FLAG_DEFAULT is 0 and has no effect, as struct
    fbinfo.flags has been allocated to zero by devm_kzalloc(). So do not
    set it.

    Flags should signal differences from the default values. After cleaning
    up all occurences of FBINFO_FLAG_DEFAULT, the token can be removed.

    Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
    Cc: Helge Deller <deller@gmx.de>
    ---
    drivers/video/fbdev/pxafb.c | 1 -
    1 file changed, 1 deletion(-)

    diff --git a/drivers/video/fbdev/pxafb.c b/drivers/video/fbdev/pxafb.c
    index c8c4677d06b4..beffb0602a2c 100644
    --- a/drivers/video/fbdev/pxafb.c
    +++ b/drivers/video/fbdev/pxafb.c
    @@ -888,7 +888,6 @@ static void init_pxafb_overlay(struct pxafb_info *fbi, struct pxafb_layer *ofb,
    ofb->fb.var.vmode = FB_VMODE_NONINTERLACED;

    ofb->fb.fbops = &overlay_fb_ops;
    - ofb->fb.flags = FBINFO_FLAG_DEFAULT;
    ofb->fb.node = -1;
    ofb->fb.pseudo_palette = NULL;

    --
    2.41.0
    \
     
     \ /
      Last update: 2023-07-10 15:03    [W:4.694 / U:0.124 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site