amdgpu/dc: move some one line dp functions to inlines.
authorDave Airlie <airlied@redhat.com>
Fri, 29 Sep 2017 07:13:23 +0000 (17:13 +1000)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 29 Sep 2017 17:03:22 +0000 (13:03 -0400)
Signed-off-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c

index 38ccc011004df17909b3ce61bafa2705c735a446..305ca0decfaaba250fd49a961bb3a303713c0da6 100644 (file)
@@ -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;
 }