summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/display/dc/dsc
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2020-10-27 00:00:32 +0300
committerAlex Deucher <alexander.deucher@amd.com>2020-11-02 04:02:01 +0300
commitdbb60031dd0c2b85f10ce4c12ae604c28d3aaca4 (patch)
tree91cf6e3994f3f8d74018c4d1d895e13191be4d8c /drivers/gpu/drm/amd/display/dc/dsc
parenta10aad137326d137a969fc6cc3555992b99ff9fc (diff)
downloadlinux-dbb60031dd0c2b85f10ce4c12ae604c28d3aaca4.tar.xz
drm/amdgpu: fix build_coefficients() argument
gcc -Wextra warns about a function taking an enum argument being called with a bool: drivers/gpu/drm/amd/amdgpu/../display/modules/color/color_gamma.c: In function 'apply_degamma_for_user_regamma': drivers/gpu/drm/amd/amdgpu/../display/modules/color/color_gamma.c:1617:29: warning: implicit conversion from 'enum <anonymous>' to 'enum dc_transfer_func_predefined' [-Wenum-conversion] 1617 | build_coefficients(&coeff, true); It appears that a patch was added using the old calling conventions after the type was changed, and the value should actually be 0 (TRANSFER_FUNCTION_SRGB) here instead of 1 (true). Fixes: 55a01d4023ce ("drm/amd/display: Add user_regamma to color module") Reviewed-by: Harry Wentland <harry.wentland@amd.com> Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/dsc')
0 files changed, 0 insertions, 0 deletions