drm/panel-edp: Abstract out function to set conservative timings
authorDouglas Anderson <dianders@chromium.org>
Mon, 25 Mar 2024 21:56:25 +0000 (14:56 -0700)
committerDouglas Anderson <dianders@chromium.org>
Mon, 8 Apr 2024 04:46:23 +0000 (21:46 -0700)
commit2cbee8ae55f50da7c6f1f2af53c452c8e3b48290
treea86e73571ee9dcee05106de71400353b3de8672a
parente495e523b888a6155f82c767d34c8d712a41ee54
drm/panel-edp: Abstract out function to set conservative timings

If we're using the generic "edp-panel" compatible string and we fail
to detect an eDP panel then we fall back to conservative timings for
powering up and powering down the panel. Abstract out the function for
setting these timings so it can be used in future patches.

No functional change expected--just code movement.

Reviewed-by: Hsin-Yi Wang <hsinyi@chromium.org>
Signed-off-by: Douglas Anderson <dianders@chromium.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20240325145626.1.I659b2517d9f619d09e804e071591ecab76335dfb@changeid
drivers/gpu/drm/panel/panel-edp.c