linux_dsm_epyc7002/drivers/gpu/drm/rockchip
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
..
analogix_dp-rockchip.c drm: Split out drm_probe_helper.h 2019-01-24 13:20:42 +01:00
cdn-dp-core.c drm: Split out drm_probe_helper.h 2019-01-24 13:20:42 +01:00
cdn-dp-core.h drm: Split out drm_probe_helper.h 2019-01-24 13:20:42 +01:00
cdn-dp-reg.c drm/rockchip: fix for mailbox read validation. 2019-01-28 11:10:44 +01:00
cdn-dp-reg.h
dw_hdmi-rockchip.c drm: Split out drm_probe_helper.h 2019-01-24 13:20:42 +01:00
dw-mipi-dsi-rockchip.c drm: bridge: Constify mode arguments to bridge .mode_set() operation 2019-01-14 03:51:14 +02:00
inno_hdmi.c drm: Split out drm_probe_helper.h 2019-01-24 13:20:42 +01:00
inno_hdmi.h
Kconfig drm: rockchip: introduce rk3066 hdmi 2019-03-31 14:24:30 +02:00
Makefile drm: rockchip: introduce rk3066 hdmi 2019-03-31 14:24:30 +02:00
rk3066_hdmi.c drm: rockchip: introduce rk3066 hdmi 2019-03-31 14:24:30 +02:00
rk3066_hdmi.h drm: rockchip: introduce rk3066 hdmi 2019-03-31 14:24:30 +02:00
rockchip_drm_drv.c drm/rockchip: shutdown drm subsystem on shutdown 2019-04-18 10:28:30 +02:00
rockchip_drm_drv.h drm: rockchip: introduce rk3066 hdmi 2019-03-31 14:24:30 +02:00
rockchip_drm_fb.c drm/fourcc: Pass the format_info pointer to drm_format_plane_cpp 2019-05-20 13:33:46 +02:00
rockchip_drm_fb.h drm/rockchip: rockchip_drm_fb -> drm_framebuffer 2018-05-18 16:02:05 +01:00
rockchip_drm_fbdev.c drm/rockchip: Use drm_fb_helper_fill_info 2019-03-27 10:05:37 +01:00
rockchip_drm_fbdev.h
rockchip_drm_gem.c drm/rockchip: fixup comment for gem_free_object_unlocked 2018-03-28 17:07:36 +02:00
rockchip_drm_gem.h drm/rockchip: support prime import sg table 2018-02-18 11:16:40 +01:00
rockchip_drm_psr.c drm: Split out drm_probe_helper.h 2019-01-24 13:20:42 +01:00
rockchip_drm_psr.h drm/rockchip: update cursors asynchronously through atomic. 2019-01-10 23:29:17 +01:00
rockchip_drm_vop.c drm: Remove users of drm_format_(horz|vert)_chroma_subsampling 2019-05-20 13:33:11 +02:00
rockchip_drm_vop.h drm/rockchip: vop: Support dithering to RGB666 2019-03-30 23:39:12 +01:00
rockchip_lvds.c drm: Split out drm_probe_helper.h 2019-01-24 13:20:42 +01:00
rockchip_lvds.h
rockchip_rgb.c Linux 5.0-rc7 2019-02-18 13:27:15 +10:00
rockchip_rgb.h drm/rockchip: rgb: update SPDX license identifier 2019-01-25 14:50:07 +01:00
rockchip_vop_reg.c drm/rockchip: vop: Support dithering to RGB666 2019-03-30 23:39:12 +01:00
rockchip_vop_reg.h drm: rockchip: vop: add rk3066 vop definitions 2019-01-12 19:42:58 +01:00