Skip to content

Commit

Permalink
drm/rockchip: fix integer type used for storing dp data rate
Browse files Browse the repository at this point in the history
commit 2589c40 ("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: 2589c40 ("drm/rockchip: Avoid drm_dp_link helpers")
Signed-off-by: Tobias Schramm <[email protected]>
Signed-off-by: Heiko Stuebner <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
  • Loading branch information
TobleMiner authored and mmind committed Jan 13, 2020
1 parent 3b675b1 commit c3b040b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/rockchip/cdn-dp-core.h
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ struct cdn_dp_device {
struct cdn_dp_port *port[MAX_PHY];
u8 ports;
u8 max_lanes;
u8 max_rate;
unsigned int max_rate;
u8 lanes;
int active_port;

Expand Down

0 comments on commit c3b040b

Please sign in to comment.