Skip to content

Commit c11a93f

Browse files
icklejnikula
authored andcommitted
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: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: Jani Nikula <jani.nikula@intel.com> Signed-off-by: Jani Nikula <jani.nikula@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20170720174532.23377-1-chris@chris-wilson.co.uk
1 parent 636c4c3 commit c11a93f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/gpu/drm/drm_dp_helper.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -591,7 +591,7 @@ void drm_dp_downstream_debug(struct seq_file *m,
591591
seq_printf(m, "\t\tHW: %d.%d\n",
592592
(rev[0] & 0xf0) >> 4, rev[0] & 0xf);
593593

594-
len = drm_dp_dpcd_read(aux, DP_BRANCH_SW_REV, &rev, 2);
594+
len = drm_dp_dpcd_read(aux, DP_BRANCH_SW_REV, rev, 2);
595595
if (len > 0)
596596
seq_printf(m, "\t\tSW: %d.%d\n", rev[0], rev[1]);
597597

0 commit comments

Comments
 (0)