fbdev: Remove FBINFO_FLAG_DEFAULT from kzalloc()'ed structs
authorThomas Zimmermann <tzimmermann@suse.de>
Sat, 15 Jul 2023 18:51:55 +0000 (20:51 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Mon, 24 Jul 2023 14:50:39 +0000 (16:50 +0200)
commit252b7b147c7b17a4993f834456712621e849fa0e
tree98c804ba59943381dfa66e7dbf8c24526fe24d07
parentcdeb052cdb1944948eeac69274f4c305345ddd22
fbdev: Remove FBINFO_FLAG_DEFAULT from kzalloc()'ed structs

The flag FBINFO_FLAG_DEFAULT is 0 and has no effect, as struct
fbinfo.flags has been allocated to zero by kzalloc(). 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-14-tzimmermann@suse.de
drivers/video/fbdev/amba-clcd.c
drivers/video/fbdev/matrox/matroxfb_crtc2.c