]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/dp: Fix read pointer for drm_dp_downsteam_debug()
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 20 Jul 2017 17:45:31 +0000 (18:45 +0100)
committerJani Nikula <jani.nikula@intel.com>
Fri, 21 Jul 2017 14:44:40 +0000 (17:44 +0300)
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
drivers/gpu/drm/drm_dp_helper.c

index 213fb837e1c40fe79bf536d54b083d99dee1c192..1d9e30f0dbf83f44fb4ffe4d394e797a5d9ad1ac 100644 (file)
@@ -591,7 +591,7 @@ void drm_dp_downstream_debug(struct seq_file *m,
                seq_printf(m, "\t\tHW: %d.%d\n",
                           (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)
                seq_printf(m, "\t\tSW: %d.%d\n", rev[0], rev[1]);