diff options
author | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2024-06-19 13:31:44 +0200 |
---|---|---|
committer | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2024-06-24 16:08:53 +0200 |
commit | 1c5f18d88eae348cf45f90aaee7b361f593b0701 (patch) | |
tree | 98bb8ee97a7c0d6a918a8396770c0e9805ae5c5f /include/drm | |
parent | drm: Rename drm_plane_check_pixel_format() to drm_plane_has_format() (diff) | |
download | linux-1c5f18d88eae348cf45f90aaee7b361f593b0701.tar.xz linux-1c5f18d88eae348cf45f90aaee7b361f593b0701.zip |
drm: Export drm_plane_has_format()
Export drm_plane_has_format() so that drivers can use it.
v2: add kerneldoc
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240619113144.1616-1-ville.syrjala@linux.intel.com
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Acked-by: Daniel Stone <daniels@collabora.com>
Acked-by: Thomas Zimmermann <tzimmermann@suse.de>
Diffstat (limited to 'include/drm')
-rw-r--r-- | include/drm/drm_plane.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/drm/drm_plane.h b/include/drm/drm_plane.h index 9507542121fa..dd718c62ac31 100644 --- a/include/drm/drm_plane.h +++ b/include/drm/drm_plane.h @@ -972,6 +972,8 @@ static inline struct drm_plane *drm_plane_find(struct drm_device *dev, #define drm_for_each_plane(plane, dev) \ list_for_each_entry(plane, &(dev)->mode_config.plane_list, head) +bool drm_plane_has_format(struct drm_plane *plane, + u32 format, u64 modifier); bool drm_any_plane_has_format(struct drm_device *dev, u32 format, u64 modifier); |