drm/i915: Use intel_get_pipe_timings() and intel_mode_from_pipe_config() in intel_crt...
authorVille Syrjälä <[email protected]>
Fri, 1 Apr 2016 18:48:50 +0000 (21:48 +0300)
committerVille Syrjälä <[email protected]>
Mon, 9 Oct 2017 14:48:08 +0000 (17:48 +0300)
commitd0d37254680fb15fdefe03a0986cfc1e22bcbfc4
treeb3588cfe7006b97e0e0f006ed1f7b99ac208933c
parente30a154b5262b967b133b06ac40777e651045898
drm/i915: Use intel_get_pipe_timings() and intel_mode_from_pipe_config() in intel_crtc_mode_get()

Eliminate the duplicate code for pipe timing readout in
intel_crtc_mode_get() by using the functions we use for the normal state
readout.

v2: Store dotclock in adjusted_mode instead of the final mode

Cc: [email protected]
Cc: Rob Kramer <[email protected]>
Cc: Daniel Vetter <[email protected]>
Signed-off-by: Ville Syrjälä <[email protected]>
Reviewed-by: Chris Wilson <[email protected]>
Tested-by: Chris Wilson <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
drivers/gpu/drm/i915/intel_display.c