OpenCloudOS-Kernel/drivers/gpu/drm/zte
Maxime Ripard 24c478ead0
drm/fourcc: Pass the format_info pointer to drm_format_plane_cpp
So far, the drm_format_plane_cpp function was operating on the format's
fourcc and was doing a lookup to retrieve the drm_format_info structure and
return the cpp.

However, this is inefficient since in most cases, we will have the
drm_format_info pointer already available so we shouldn't have to perform a
new lookup. Some drm_fourcc functions also already operate on the
drm_format_info pointer for that reason, so the API is quite inconsistent
there.

Let's follow the latter pattern and remove the extra lookup while being a
bit more consistent. In order to be extra consistent, also rename that
function to drm_format_info_plane_cpp and to a static function in the
header to match the current policy.

Reviewed-by: Emil Velikov <emil.velikov@collabora.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/32aa13e53dbc98a90207fd290aa8e79f785fb11e.1558002671.git-series.maxime.ripard@bootlin.com
2019-05-20 13:33:46 +02:00
..
Kconfig drm: zte: support hdmi audio through spdif 2017-01-28 10:17:39 +08:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
zx_common_regs.h drm: zte: move CSC register definitions into a common header 2017-05-04 13:51:52 +08:00
zx_drm_drv.c drm: Split out drm_probe_helper.h 2019-01-24 13:20:42 +01:00
zx_drm_drv.h drm: zte: add VGA driver support 2017-05-04 13:53:05 +08:00
zx_hdmi.c drm: Split out drm_probe_helper.h 2019-01-24 13:20:42 +01:00
zx_hdmi_regs.h drm: zte: support hdmi audio through spdif 2017-01-28 10:17:39 +08:00
zx_plane.c drm/fourcc: Pass the format_info pointer to drm_format_plane_cpp 2019-05-20 13:33:46 +02:00
zx_plane.h drm: zte: add .atomic_disable hook to disable graphic layer 2017-01-28 10:17:40 +08:00
zx_plane_regs.h drm: zte: move CSC register definitions into a common header 2017-05-04 13:51:52 +08:00
zx_tvenc.c drm: Split out drm_probe_helper.h 2019-01-24 13:20:42 +01:00
zx_tvenc_regs.h drm: zte: add tvenc driver support 2017-01-28 11:51:23 +08:00
zx_vga.c drm: Split out drm_probe_helper.h 2019-01-24 13:20:42 +01:00
zx_vga_regs.h drm: zte: add VGA driver support 2017-05-04 13:53:05 +08:00
zx_vou.c drm: Split out drm_probe_helper.h 2019-01-24 13:20:42 +01:00
zx_vou.h drm/zte: Stop consulting plane->crtc 2018-03-29 19:14:21 +03:00
zx_vou_regs.h drm: zte: add VGA driver support 2017-05-04 13:53:05 +08:00