drm/amd/display: Remove unused macros
authorAnson Jacob <Anson.Jacob@amd.com>
Wed, 13 Oct 2021 02:21:15 +0000 (22:21 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 28 Oct 2021 18:26:16 +0000 (14:26 -0400)
fixed16_to_double & fixed16_to_double_to_cpu are not used.

Reviewed-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Acked-by: Agustin Gutierrez <agustin.gutierrez@amd.com>
Signed-off-by: Anson Jacob <Anson.Jacob@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c
drivers/gpu/drm/amd/display/dc/dcn30/dcn30_resource.c
drivers/gpu/drm/amd/display/dc/dcn31/dcn31_resource.c

index 00173748780040543081e2db442b29bc0074dfba..3883f918b3bb2b907496e1e34d4d9414391ad082 100644 (file)
@@ -3660,9 +3660,6 @@ static enum dml_project get_dml_project_version(uint32_t hw_internal_rev)
        return DML_PROJECT_NAVI10v2;
 }
 
-#define fixed16_to_double(x) (((double) x) / ((double) (1 << 16)))
-#define fixed16_to_double_to_cpu(x) fixed16_to_double(le32_to_cpu(x))
-
 static bool init_soc_bounding_box(struct dc *dc,
                                  struct dcn20_resource_pool *pool)
 {
index 6d70ccb108af8617ee624e9f132a062be1ebf815..6dda20f3741cc3da7d3585bc6b49c994f21348cf 100644 (file)
@@ -1707,9 +1707,6 @@ bool dcn30_release_post_bldn_3dlut(
        return ret;
 }
 
-#define fixed16_to_double(x) (((double) x) / ((double) (1 << 16)))
-#define fixed16_to_double_to_cpu(x) fixed16_to_double(le32_to_cpu(x))
-
 static bool is_soc_bounding_box_valid(struct dc *dc)
 {
        uint32_t hw_internal_rev = dc->ctx->asic_id.hw_internal_rev;
index 3447588d29b44f6764d5a28f29f5ea73009b21b5..87b2c2428842901e614da779159553c3599fb0b4 100644 (file)
 #include "link_enc_cfg.h"
 
 #define DC_LOGGER_INIT(logger)
-#define fixed16_to_double(x) (((double) x) / ((double) (1 << 16)))
-#define fixed16_to_double_to_cpu(x) fixed16_to_double(le32_to_cpu(x))
 
 #define DCN3_1_DEFAULT_DET_SIZE 384