linux/drivers/gpu/drm/amd/display
Arnd Bergmann 61b3d5e201 drm/amdgpu: fix build_coefficients() argument
[ Upstream commit dbb60031dd ]

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: 55a01d4023 ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2020-12-30 11:53:00 +01:00
..
amdgpu_dm drm/amdgpu/disply: set num_crtc earlier 2020-12-09 10:03:59 -05:00
dc drm/amdgpu: fix incorrect enum type 2020-12-30 11:52:59 +01:00
dmub drm/amd/display: [FW Promotion] Release 0.0.35 2020-09-29 16:11:04 -04:00
include drm/amdgpu/display: remove DRM_AMD_DC_GREEN_SARDINE 2020-11-04 08:43:50 -05:00
modules drm/amdgpu: fix build_coefficients() argument 2020-12-30 11:53:00 +01:00
Kconfig drm/amdgpu/display: remove DRM_AMD_DC_GREEN_SARDINE 2020-11-04 08:43:50 -05:00
Makefile drm/amd/display: Drop CONFIG_DRM_AMD_DC_DMUB guards 2019-11-13 15:29:42 -05:00
TODO drm/amd/display: Convert remaining loggers off dc_logger 2018-07-13 14:48:42 -05:00