Skip to content

Commit 1500805

Browse files
geertuThomas Zimmermann
authored andcommitted
drm/fbdev-dma: Fix documented default preferred_bpp value
As of commit 6c80a93 ("drm/fb-helper: Initialize fb-helper's preferred BPP in prepare function"), the preferred_bpp parameter of drm_fb_helper_prepare() defaults to 32 instead of drm_mode_config.preferred_depth. Hence this also applies to drm_fbdev_dma_setup(), which just passes its own preferred_bpp parameter. Fixes: b79fe9a ("drm/fbdev-dma: Implement fbdev emulation for GEM DMA helpers") Signed-off-by: Geert Uytterhoeven <[email protected]> Reviewed-by: Thomas Zimmermann <[email protected]> Signed-off-by: Thomas Zimmermann <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/91f093ffe436a9f94d58fb2bfbc1407f1ebe8bb0.1688656591.git.geert+renesas@glider.be
1 parent 00ae149 commit 1500805

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/drm_fbdev_dma.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ static const struct drm_client_funcs drm_fbdev_dma_client_funcs = {
218218
* drm_fbdev_dma_setup() - Setup fbdev emulation for GEM DMA helpers
219219
* @dev: DRM device
220220
* @preferred_bpp: Preferred bits per pixel for the device.
221-
* @dev->mode_config.preferred_depth is used if this is zero.
221+
* 32 is used if this is zero.
222222
*
223223
* This function sets up fbdev emulation for GEM DMA drivers that support
224224
* dumb buffers with a virtual address and that can be mmap'ed.

0 commit comments

Comments
 (0)