diff options
author | Tobias Schramm <t.schramm@manjaro.org> | 2020-01-09 10:31:29 +0300 |
---|---|---|
committer | Heiko Stuebner <heiko@sntech.de> | 2020-01-13 16:31:59 +0300 |
commit | c3b040b5c58f9a2de8f672f9e7cb1a8d411b9f23 (patch) | |
tree | 097e896029ca5bb0a88cd22c71daeefb39149b66 /drivers/gpu/drm/rockchip | |
parent | 3b675b15571c5342499dec6a0b77d730f1101b62 (diff) | |
download | linux-c3b040b5c58f9a2de8f672f9e7cb1a8d411b9f23.tar.xz |
drm/rockchip: fix integer type used for storing dp data rate
commit 2589c4025f13 ("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: 2589c4025f13 ("drm/rockchip: Avoid drm_dp_link helpers")
Signed-off-by: Tobias Schramm <t.schramm@manjaro.org>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20200109073129.378507-2-t.schramm@manjaro.org
Diffstat (limited to 'drivers/gpu/drm/rockchip')
-rw-r--r-- | drivers/gpu/drm/rockchip/cdn-dp-core.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/rockchip/cdn-dp-core.h b/drivers/gpu/drm/rockchip/cdn-dp-core.h index 83c4586665b4..81ac9b658a70 100644 --- a/drivers/gpu/drm/rockchip/cdn-dp-core.h +++ b/drivers/gpu/drm/rockchip/cdn-dp-core.h @@ -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; |