drm: Helper to read max bits per component
authorMika Kahola <mika.kahola@intel.com>
Fri, 9 Sep 2016 11:10:50 +0000 (14:10 +0300)
committerJani Nikula <jani.nikula@intel.com>
Thu, 15 Sep 2016 11:50:01 +0000 (14:50 +0300)
commit7529d6af1cd16b0ecd286a1bf6ceee5328ab9809
treed20ab3af9417ae038fec481715d2e96f7c635157
parent1c29bd3d6011bed4cbae215571f6f4c25ab10012
drm: Helper to read max bits per component

Helper routine to read out maximum supported bits per
component for DisplayPort legay converters.

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-5-git-send-email-mika.kahola@intel.com
drivers/gpu/drm/drm_dp_helper.c
include/drm/drm_dp_helper.h