drm/vc4: tests: Return the allocated output
authorMaxime Ripard <maxime@cerno.tech>
Fri, 24 Mar 2023 09:02:59 +0000 (10:02 +0100)
committerDom Cobley <popcornmix@gmail.com>
Mon, 19 Feb 2024 11:34:59 +0000 (11:34 +0000)
commit48ea5145405a3462d3f5e2046cd2744439bbd112
tree32f3cc665ece9fa230f9db4a346bc75515af6136
parent7492b2257d150c43b73d4a0c9064dd8a87527170
drm/vc4: tests: Return the allocated output

Some tests will need to retrieve the output that was just allocated by
vc4_mock_atomic_add_output().

Instead of making them look them up in the DRM device, we can simply
make vc4_mock_atomic_add_output() return an error pointer that holds the
allocated output instead of the error code.

Signed-off-by: Maxime Ripard <maxime@cerno.tech>
drivers/gpu/drm/vc4/tests/vc4_mock.h
drivers/gpu/drm/vc4/tests/vc4_mock_output.c
drivers/gpu/drm/vc4/tests/vc4_test_pv_muxing.c