Skip to content

Commit c3b040b

Browse files
TobleMinermmind
authored andcommitted
drm/rockchip: fix integer type used for storing dp data rate
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]
1 parent 3b675b1 commit c3b040b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/rockchip/cdn-dp-core.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ struct cdn_dp_device {
9595
struct cdn_dp_port *port[MAX_PHY];
9696
u8 ports;
9797
u8 max_lanes;
98-
u8 max_rate;
98+
unsigned int max_rate;
9999
u8 lanes;
100100
int active_port;
101101

0 commit comments

Comments
 (0)