]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/tests: hdmi: return meaningful value from set_connector_edid()
authorDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Sat, 30 Nov 2024 01:52:28 +0000 (03:52 +0200)
committerDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Thu, 5 Dec 2024 12:36:00 +0000 (14:36 +0200)
commita8403be6eea91e4f5d8ad5dbc463dd08339eaece
tree83f06f1f300aea862635d0d4eee3b08613e18d5e
parent67d31cd02c8dfb3d006dba62a854e6758cf7a0e4
drm/tests: hdmi: return meaningful value from set_connector_edid()

The set_connector_edid() function returns a bogus 0, performing the
check on the connector->funcs->fill_modes() result internally. Make the
function pass the fill_modes()'s return value to the caller and move
corresponding checks to the caller site.

Reviewed-by: Maxime Ripard <mripard@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20241130-hdmi-mode-valid-v5-3-742644ec3b1f@linaro.org
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
drivers/gpu/drm/tests/drm_hdmi_state_helper_test.c