drm/probe-helper: Add helper for drm_helper_probe_single_connector_modes()
authorDouglas Anderson <dianders@chromium.org>
Wed, 11 May 2022 22:58:07 +0000 (15:58 -0700)
committerDouglas Anderson <dianders@chromium.org>
Fri, 20 May 2022 00:16:57 +0000 (17:16 -0700)
commit4a2a13a57b605994ee44e5c2cd7b9efc49901404
tree397b481bb9d4f7a62642e78e6cf5e46ff5989058
parent4f093a527b0b8f9d3059a4e8376e582fd14cf09e
drm/probe-helper: Add helper for drm_helper_probe_single_connector_modes()

The drm_helper_probe_single_connector_modes() is a bit long. Let's
break a chunk off to update and validate modes. This helps avoid one
goto and also will allow us to more easily call the helper a second
time in a future patch without adding looping or another goto.

This change is intended to be a no-op change--just code movement.

Signed-off-by: Douglas Anderson <dianders@chromium.org>
Reviewed-by: Abhinav Kumar <quic_abhinavk@quicinc.com>
Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20220511155749.v3.1.I2dd93486c6952bd52f2020904de0133970d11b29@changeid
drivers/gpu/drm/drm_probe_helper.c