fbdev: Document that framebuffer_alloc() returns zero'ed data
authorThomas Zimmermann <tzimmermann@suse.de>
Sat, 15 Jul 2023 18:52:00 +0000 (20:52 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Mon, 24 Jul 2023 14:50:39 +0000 (16:50 +0200)
commitc07e1f20dcbe010ceefb7ccdeac0198222366168
treec031701d8d7bf28cb1e2a5dd18cbc91023de4987
parent0444fa357c16a4c36c6c6e3ef13e690875fad208
fbdev: Document that framebuffer_alloc() returns zero'ed data

Most fbdev drivers depend on framebuffer_alloc() to initialize the
allocated memory to 0. Document this guarantee.

v3:
* slightly reword the sentence (Miguel)

Suggested-by: Miguel Ojeda <ojeda@kernel.org>
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Miguel Ojeda <ojeda@kernel.org>
Reviewed-by: Sui Jingfeng <suijingfeng@loongson.cn>
Cc: Helge Deller <deller@gmx.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20230715185343.7193-19-tzimmermann@suse.de
drivers/video/fbdev/core/fb_info.c