Commit c11a93f5 authored by Chris Wilson's avatar Chris Wilson Committed by Jani Nikula

drm/dp: Fix read pointer for drm_dp_downsteam_debug()

Pass in the array and not a pointer to the array to drm_dp_dpcd_read().
Signed-off-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: default avatarJani Nikula <jani.nikula@intel.com>
Signed-off-by: default avatarJani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20170720174532.23377-1-chris@chris-wilson.co.uk
parent 636c4c3e
...@@ -591,7 +591,7 @@ void drm_dp_downstream_debug(struct seq_file *m, ...@@ -591,7 +591,7 @@ void drm_dp_downstream_debug(struct seq_file *m,
seq_printf(m, "\t\tHW: %d.%d\n", seq_printf(m, "\t\tHW: %d.%d\n",
(rev[0] & 0xf0) >> 4, rev[0] & 0xf); (rev[0] & 0xf0) >> 4, rev[0] & 0xf);
len = drm_dp_dpcd_read(aux, DP_BRANCH_SW_REV, &rev, 2); len = drm_dp_dpcd_read(aux, DP_BRANCH_SW_REV, rev, 2);
if (len > 0) if (len > 0)
seq_printf(m, "\t\tSW: %d.%d\n", rev[0], rev[1]); seq_printf(m, "\t\tSW: %d.%d\n", rev[0], rev[1]);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment