OSDN Git Service

drm/i915: Deduplicate the code to fill the aux message header
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 22 Feb 2018 21:28:02 +0000 (23:28 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 2 Mar 2018 16:26:52 +0000 (18:26 +0200)
commit32078b727ded0231b6265c6694ff49b0f76c27a0
treec0983f021943ad31a58818594e6dbd69dc7e61d0
parent8159c796b6d7919bd77c84b8b9a4aa2e76f45491
drm/i915: Deduplicate the code to fill the aux message header

We have two instances of the code to fill out the header for the aux
message. Pull it into a small helper.

v2: Rebase due to txbuf[] changes

Cc: Sean Paul <seanpaul@chromium.org>
Cc: Ramalingam C <ramalingam.c@intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180222212802.4826-1-ville.syrjala@linux.intel.com
Reviewed-by: Ramalingam C <ramalingam.c@intel.com>
drivers/gpu/drm/i915/intel_dp.c