From: Dave Airlie Date: Fri, 29 Sep 2017 07:13:23 +0000 (+1000) Subject: amdgpu/dc: move some one line dp functions to inlines. X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=450619d328d0824fab649187019cbea3532f879c;p=openwrt%2Fstaging%2Fblogic.git amdgpu/dc: move some one line dp functions to inlines. Signed-off-by: Dave Airlie Reviewed-by: Harry Wentland Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c b/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c index 38ccc011004d..305ca0decfaa 100644 --- a/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c +++ b/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c @@ -1191,12 +1191,12 @@ struct dc_link_settings get_common_supported_link_settings ( return link_settings; } -bool reached_minimum_lane_count(enum dc_lane_count lane_count) +static inline bool reached_minimum_lane_count(enum dc_lane_count lane_count) { return lane_count <= LANE_COUNT_ONE; } -bool reached_minimum_link_rate(enum dc_link_rate link_rate) +static inline bool reached_minimum_link_rate(enum dc_link_rate link_rate) { return link_rate <= LINK_RATE_LOW; }