Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/amd/display: Rename fs_params to hdr_tm_params

[Why&How]
Renaming structure to better indicate its meaning.

Signed-off-by: Krunoslav Kovac <Krunoslav.Kovac@amd.com>
Reviewed-by: Aric Cyr <Aric.Cyr@amd.com>
Acked-by: Anson Jacob <Anson.Jacob@amd.com>
Acked-by: Anthony Koo <Anthony.Koo@amd.com>
Tested-by: Dan Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Krunoslav Kovac and committed by
Alex Deucher
6b91a404 553ef24d

+5 -5
+3 -3
drivers/gpu/drm/amd/display/modules/color/color_gamma.c
··· 942 942 static bool build_freesync_hdr(struct pwl_float_data_ex *rgb_regamma, 943 943 uint32_t hw_points_num, 944 944 const struct hw_x_point *coordinate_x, 945 - const struct freesync_hdr_tf_params *fs_params, 945 + const struct hdr_tm_params *fs_params, 946 946 struct calculate_buffer *cal_buffer) 947 947 { 948 948 uint32_t i; ··· 2027 2027 static bool calculate_curve(enum dc_transfer_func_predefined trans, 2028 2028 struct dc_transfer_func_distributed_points *points, 2029 2029 struct pwl_float_data_ex *rgb_regamma, 2030 - const struct freesync_hdr_tf_params *fs_params, 2030 + const struct hdr_tm_params *fs_params, 2031 2031 uint32_t sdr_ref_white_level, 2032 2032 struct calculate_buffer *cal_buffer) 2033 2033 { ··· 2106 2106 2107 2107 bool mod_color_calculate_regamma_params(struct dc_transfer_func *output_tf, 2108 2108 const struct dc_gamma *ramp, bool mapUserRamp, bool canRomBeUsed, 2109 - const struct freesync_hdr_tf_params *fs_params, 2109 + const struct hdr_tm_params *fs_params, 2110 2110 struct calculate_buffer *cal_buffer) 2111 2111 { 2112 2112 struct dc_transfer_func_distributed_points *tf_pts = &output_tf->tf_pts;
+2 -2
drivers/gpu/drm/amd/display/modules/color/color_gamma.h
··· 76 76 }; 77 77 }; 78 78 79 - struct freesync_hdr_tf_params { 79 + struct hdr_tm_params { 80 80 unsigned int sdr_white_level; 81 81 unsigned int min_content; // luminance in 1/10000 nits 82 82 unsigned int max_content; // luminance in nits ··· 108 108 109 109 bool mod_color_calculate_regamma_params(struct dc_transfer_func *output_tf, 110 110 const struct dc_gamma *ramp, bool mapUserRamp, bool canRomBeUsed, 111 - const struct freesync_hdr_tf_params *fs_params, 111 + const struct hdr_tm_params *fs_params, 112 112 struct calculate_buffer *cal_buffer); 113 113 114 114 bool mod_color_calculate_degamma_params(struct dc_color_caps *dc_caps,