Commit c3b040b5 authored by Tobias Schramm's avatar Tobias Schramm Committed by Heiko Stuebner

drm/rockchip: fix integer type used for storing dp data rate

commit 2589c402 ("drm/rockchip: Avoid drm_dp_link helpers") changes
the type of variables used to store the display port data rate and
number of lanes to u8. However u8 is not sufficient to store the link
data rate of the display port.
This commit reverts the type of data rate to unsigned int.

Fixes: 2589c402 ("drm/rockchip: Avoid drm_dp_link helpers")
Signed-off-by: default avatarTobias Schramm <t.schramm@manjaro.org>
Signed-off-by: default avatarHeiko Stuebner <heiko@sntech.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20200109073129.378507-2-t.schramm@manjaro.org
parent 3b675b15
...@@ -95,7 +95,7 @@ struct cdn_dp_device { ...@@ -95,7 +95,7 @@ struct cdn_dp_device {
struct cdn_dp_port *port[MAX_PHY]; struct cdn_dp_port *port[MAX_PHY];
u8 ports; u8 ports;
u8 max_lanes; u8 max_lanes;
u8 max_rate; unsigned int max_rate;
u8 lanes; u8 lanes;
int active_port; int active_port;
......
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