drm: Helper to read max clock rate
authorMika Kahola <mika.kahola@intel.com>
Fri, 9 Sep 2016 11:10:49 +0000 (14:10 +0300)
committerJani Nikula <jani.nikula@intel.com>
Thu, 15 Sep 2016 11:49:48 +0000 (14:49 +0300)
commit1c29bd3d6011bed4cbae215571f6f4c25ab10012
tree9430be270ab3c96e8ef5207d77eab7b4e3600266
parent8fedf080086a4884b0f0a20ba6abbeaeb960916e
drm: Helper to read max clock rate

Helper routine to read out maximum supported pixel rate
for DisplayPort legay VGA converter or TMDS clock rate
for other digital legacy converters. The helper returns
clock rate in kHz.

v2: Return early if detailed port cap info is not available.
    Replace if-else ladder with switch-case (Ville)

Reviewed-by: Jim Bride <jim.bride@linux.intel.com>
Signed-off-by: Mika Kahola <mika.kahola@intel.com>
Acked-by: Dave Airlie <airlied@gmail.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1473419458-17080-4-git-send-email-mika.kahola@intel.com
drivers/gpu/drm/drm_dp_helper.c
include/drm/drm_dp_helper.h