diff options
author | Thomas Zimmermann <tzimmermann@suse.de> | 2023-07-15 20:51:49 +0200 |
---|---|---|
committer | Thomas Zimmermann <tzimmermann@suse.de> | 2023-07-24 16:50:38 +0200 |
commit | 050bb5870724fd8262c0dad3e5b91c9f83d0f290 (patch) | |
tree | 668412087b58133a0055a04925145deb16806918 /samples | |
parent | 76a68cdecc080890925c404b23751cc977811cc9 (diff) | |
download | linux-050bb5870724fd8262c0dad3e5b91c9f83d0f290.tar.gz linux-050bb5870724fd8262c0dad3e5b91c9f83d0f290.tar.bz2 linux-050bb5870724fd8262c0dad3e5b91c9f83d0f290.zip |
vfio-mdev: Remove flag FBINFO_DEFAULT from fbdev sample driver
The flag FBINFO_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>
Cc: Kirti Wankhede <kwankhede@nvidia.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230715185343.7193-8-tzimmermann@suse.de
Diffstat (limited to 'samples')
-rw-r--r-- | samples/vfio-mdev/mdpy-fb.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/samples/vfio-mdev/mdpy-fb.c b/samples/vfio-mdev/mdpy-fb.c index 3c8001b9e407..cda477b28685 100644 --- a/samples/vfio-mdev/mdpy-fb.c +++ b/samples/vfio-mdev/mdpy-fb.c @@ -162,7 +162,6 @@ static int mdpy_fb_probe(struct pci_dev *pdev, } info->fbops = &mdpy_fb_ops; - info->flags = FBINFO_DEFAULT; info->pseudo_palette = par->palette; ret = register_framebuffer(info); |