OSDN Git Service

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)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 25 Oct 2016 06:53:44 +0000 (08:53 +0200)
commit714cf7ea505502186de0e87e9f029a4c46f03631
treed39c662df71a0c91f4502922b25387932d118e13
parent14544d0937bf0160018a47ba74fff7fd61c22731
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>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
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