]> 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)
commit7f2734ff3182aec39a12e91c2c704ab1f31d963b
tree4405e37f79482410f20b2afa9444f52a25a061a2
parent4d3d5e42f30a6be4dd9ac34a45e94ec61f72798f
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