drm/vc4: crtc: Add encoder to vc4_crtc_config_pv prototype
authorMaxime Ripard <maxime@cerno.tech>
Mon, 25 Oct 2021 15:28:57 +0000 (17:28 +0200)
committerMaxime Ripard <maxime@cerno.tech>
Thu, 4 Nov 2021 09:36:25 +0000 (10:36 +0100)
commitd6faf94a68ae83c565cd6df1426d3a9dc277a372
tree4405e37f79482410f20b2afa9444f52a25a061a2
parentd0229c360a42439c2a7c40c977455a4f9fc387de
drm/vc4: crtc: Add encoder to vc4_crtc_config_pv prototype

vc4_crtc_config_pv() retrieves the encoder again, even though its only
caller, vc4_crtc_atomic_enable(), already did.

Pass the encoder pointer as an argument instead of going through all the
connectors to retrieve it again.

Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Reviewed-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
Link: https://lore.kernel.org/r/20211025152903.1088803-5-maxime@cerno.tech
drivers/gpu/drm/vc4/vc4_crtc.c