summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMaxime Ripard <maxime.ripard@bootlin.com>2019-05-16 12:31:52 +0200
committerMaxime Ripard <maxime.ripard@bootlin.com>2019-05-20 13:35:56 +0200
commitb0f986b4b025c8036ab2c660460621c1d17656b5 (patch)
tree86580c39ae72c19ab28f56549231e805316e1d47 /include
parent92f080762c3f45bbcfbe35e2ac610af1ee3bb2b9 (diff)
downloadlinux-stable-b0f986b4b025c8036ab2c660460621c1d17656b5.tar.gz
linux-stable-b0f986b4b025c8036ab2c660460621c1d17656b5.tar.bz2
linux-stable-b0f986b4b025c8036ab2c660460621c1d17656b5.zip
drm: Remove users of drm_format_info_plane_cpp
drm_format_info_plane_cpp() basically just returns the cpp array content found in the drm_format_info structure. Since it's pretty trivial, let's remove the function and have the users use the array directly Suggested-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Reviewed-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com> Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com> Link: https://patchwork.freedesktop.org/patch/msgid/c0a78c87cd0410a1819edad2794ad06543c85bb5.1558002671.git-series.maxime.ripard@bootlin.com
Diffstat (limited to 'include')
-rw-r--r--include/drm/drm_fourcc.h17
1 files changed, 0 insertions, 17 deletions
diff --git a/include/drm/drm_fourcc.h b/include/drm/drm_fourcc.h
index 4ef8ccb5d236..405466692bd2 100644
--- a/include/drm/drm_fourcc.h
+++ b/include/drm/drm_fourcc.h
@@ -261,23 +261,6 @@ drm_format_info_is_yuv_sampling_444(const struct drm_format_info *info)
}
/**
- * drm_format_info_plane_cpp - determine the bytes per pixel value
- * @format: pixel format info
- * @plane: plane index
- *
- * Returns:
- * The bytes per pixel value for the specified plane.
- */
-static inline
-int drm_format_info_plane_cpp(const struct drm_format_info *info, int plane)
-{
- if (!info || plane >= info->num_planes)
- return 0;
-
- return info->cpp[plane];
-}
-
-/**
* drm_format_info_plane_width - width of the plane given the first plane
* @format: pixel format info
* @width: width of the first plane