drm/dp: Factor out helper to distinguish between branch and sink devices
authorImre Deak <imre.deak@intel.com>
Mon, 24 Oct 2016 16:33:24 +0000 (19:33 +0300)
committerImre Deak <imre.deak@intel.com>
Wed, 26 Oct 2016 09:40:59 +0000 (12:40 +0300)
commitc726ad01d2e3e27400421de85800d954df55aeea
treec2a1868e0de4c80fedca081cc14ed7d3b50455fd
parent6014ac122ed081feca99217bc57b2e15c7fc1a51
drm/dp: Factor out helper to distinguish between branch and sink devices

This check is open-coded in a few places, so it makes sense to simplify
things by having a helper for it similar to the rest of DPCD feature
helpers.

v2: (Jani)
- Move the helper to drm_dp_helper.h.
- Split out this change to a separate patch.

Cc: Jani Nikula <jani.nikula@intel.com>
Cc: dri-devel@lists.freedesktop.org
Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1477326811-30431-2-git-send-email-imre.deak@intel.com
drivers/gpu/drm/i915/intel_dp.c
include/drm/drm_dp_helper.h