OSDN Git Service

drm/rockchip: cdn-dp: correct rate in the struct drm_dp_link assignment
authorSandor Yu <Sandor.yu@nxp.com>
Wed, 5 Jun 2019 08:04:24 +0000 (16:04 +0800)
committerHeiko Stuebner <heiko@sntech.de>
Fri, 14 Jun 2019 11:53:07 +0000 (13:53 +0200)
commitde85ec271a864c05e99ad5ffbed9e95d1b65c757
tree999a251de35d0b8bcdeb485136efccfe806e49a9
parent53ffa1ee8de2cdfb0fcbef798486ba9c7f9316fd
drm/rockchip: cdn-dp: correct rate in the struct drm_dp_link assignment

The value stored in the rate field of struct drm_dp_link should
be the actual link-rate and not the bw_code.

Right now the driver stores the code and converts it to the rate.
So fixup the driver to store the rate itself.

Signed-off-by: Sandor Yu <Sandor.yu@nxp.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20190605080424.28731-1-sandor.yu@nxp.com
drivers/gpu/drm/rockchip/cdn-dp-reg.c