]> asedeno.scripts.mit.edu Git - linux.git/commit
drm/rockchip: Change the scl_vop_cal_scl_fac to pass drm_format_info
authorMaxime Ripard <maxime.ripard@bootlin.com>
Thu, 16 May 2019 10:31:46 +0000 (12:31 +0200)
committerMaxime Ripard <maxime.ripard@bootlin.com>
Mon, 20 May 2019 11:32:20 +0000 (13:32 +0200)
commit45babef01f92f1c3ab3012dfb7e98ae51f1ebeab
treeb116341f32566579f49903ef31fb02aabafc6109
parent78666baac29503a1f585b13f22b5ceb93ab26421
drm/rockchip: Change the scl_vop_cal_scl_fac to pass drm_format_info

The Rockchip VOP driver has a function, scl_vop_cal_scl_fac, that will
lookup the drm_format_info structure from the fourcc passed to it by its
caller.

However, its only caller already derefences the drm_format_info structure
it has access to to retrieve that fourcc. Change the prototype of that
function to pass the drm_format_info structure directly, removing the need
for an extra lookup.

Reviewed-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com>
Reviewed-by: Sean Paul <sean@poorly.run>
Suggested-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
Link: https://patchwork.freedesktop.org/patch/msgid/27b0041c7977402df4a087c78d2849ffe51c9f1c.1558002671.git-series.maxime.ripard@bootlin.com
drivers/gpu/drm/rockchip/rockchip_drm_vop.c