]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit126e8b6f00784a81b4fdc6087a32c7f9d57af10b
tree397b481bb9d4f7a62642e78e6cf5e46ff5989058
parenteea807d90c0e44b8fcab1f0832080d0ca0090bcc
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