diff --git a/drivers/gpu/drm/amd/display/dc/dml/dml_inline_defs.h b/drivers/gpu/drm/amd/display/dc/dml/dml_inline_defs.h index 02e06c9b32302efe09c1f3288501ebb5d8989a97..ab0870e2a103c71b85f0e2a98f336022db9e2e96 100644 --- a/drivers/gpu/drm/amd/display/dc/dml/dml_inline_defs.h +++ b/drivers/gpu/drm/amd/display/dc/dml/dml_inline_defs.h @@ -86,9 +86,9 @@ static inline double dml_round(double a) return floor; } -static inline int dml_log2(double x) +static inline double dml_log2(double x) { - return dml_round((double)dcn_bw_log(x, 2)); + return (double) dcn_bw_log(x, 2); } static inline double dml_pow(double a, int exp)