]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4e0f1f878c5b4120e57d180c869aff702718496e
tree4405e37f79482410f20b2afa9444f52a25a061a2
parent32476799603916cb5ef3da8b50cf3f8fa5702ee9
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