diff options
author | Geert Uytterhoeven <[email protected]> | 2023-10-15 16:27:04 +0200 |
---|---|---|
committer | Hamza Mahfooz <[email protected]> | 2023-10-24 12:21:01 -0400 |
commit | 6ae2ff23aa43a0c421cf315c34b105bdfe317f63 (patch) | |
tree | 7ee256c0fb3ada1ea9b4ae7a3e8200e2f4557253 /drivers/usb/cdns3/cdns3-debug.h | |
parent | f70a6691751ce6af4d6d8f2273609ed330ee5ef9 (diff) |
drm/client: Convert drm_client_buffer_addfb() to drm_mode_addfb2()
Currently drm_client_buffer_addfb() uses the legacy drm_mode_addfb(),
which uses bpp and depth to guess the wanted buffer format.
However, drm_client_buffer_addfb() already knows the exact buffer
format, so there is no need to convert back and forth between buffer
format and bpp/depth, and the function can just call drm_mode_addfb2()
directly instead.
Signed-off-by: Geert Uytterhoeven <[email protected]>
Reviewed-by: Javier Martinez Canillas <[email protected]>
Tested-by: Javier Martinez Canillas <[email protected]>
Signed-off-by: Hamza Mahfooz <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/4b84adfc686288714e69d0442d22f1259ff74903.1697379891.git.geert@linux-m68k.org
Diffstat (limited to 'drivers/usb/cdns3/cdns3-debug.h')
0 files changed, 0 insertions, 0 deletions