]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/mipi-dbi: Provide callbacks for atomic interfaces
authorThomas Zimmermann <tzimmermann@suse.de>
Thu, 19 Mar 2026 15:59:39 +0000 (16:59 +0100)
committerThomas Zimmermann <tzimmermann@suse.de>
Wed, 25 Mar 2026 14:04:38 +0000 (15:04 +0100)
commit4a1affab9f9d816645b63bd642dccb49196e931d
tree7efac4648e35b25149cc9efa0d2f2d28b76525a4
parent7efb8fd7ca37125f01ec568a9e3f0c1548eb06ab
drm/mipi-dbi: Provide callbacks for atomic interfaces

Refactor the existing simple-display callbacks such that they invoke
helpers compatible with regular atomic modesetting. Allows for adding
mipi-dbi drives that do not require simple-display helpers.

Provide initializer macro for elements of the regular modesetting
pipeline. These will be used by drivers to integrate mipi-dbi helpers.
Also provide initializer macros for the plane formats.

As the new helpers are DRM functions, add the drm_ prefix. Mipi-dbi
interfaces currently lack this.

v3:
- fix uninitialized variable (David)
- document public interfaces (David)
- mention format macros in commit message (David)

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Acked-by: David Lechner <david@lechnology.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Link: https://patch.msgid.link/20260319160110.109610-4-tzimmermann@suse.de
drivers/gpu/drm/drm_mipi_dbi.c
include/drm/drm_mipi_dbi.h