1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/gpu/drm/amd/display
Arnd Bergmann dbb60031dd 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: 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>
2020-11-01 20:02:01 -05:00
..
amdgpu_dm drm/amd/display: Clean up GFX9 tiling_flags path. 2020-10-30 14:27:23 -04:00
dc drm/amdgpu: fix incorrect enum type 2020-10-30 01:03:05 -04:00
dmub drm/amd/display: [FW Promotion] Release 0.0.38 2020-10-26 13:33:46 -04:00
include drm/amdgpu/display: remove DRM_AMD_DC_GREEN_SARDINE 2020-10-30 01:02:03 -04:00
modules drm/amdgpu: fix build_coefficients() argument 2020-11-01 20:02:01 -05:00
Kconfig drm/amdgpu/display: remove DRM_AMD_DC_GREEN_SARDINE 2020-10-30 01:02:03 -04: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