linux/drivers/gpu/drm/amd/display/dc/i2caux
Nathan Chancellor dd330d8c27 drm/amd/display: Use proper enums in process_channel_reply
Clang warns when one enumerated type is implicitly converted to another.

drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_aux.c:315:19: warning:
implicit conversion from enumeration type 'enum
aux_channel_operation_result' to different enumeration type 'enum
aux_transaction_reply' [-Wenum-conversion]
                reply->status = AUX_CHANNEL_OPERATION_FAILED_HPD_DISCON;
                              ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/../display/dc/i2caux/dce110/aux_engine_dce110.c:349:19:
warning: implicit conversion from enumeration type 'enum
aux_channel_operation_result' to different enumeration type 'enum
aux_transaction_reply' [-Wenum-conversion]
                reply->status = AUX_CHANNEL_OPERATION_FAILED_HPD_DISCON;
                              ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

The current enum is incorrect, it should be from aux_transaction_reply,
so use AUX_TRANSACTION_REPLY_HPD_DISCON.

Reported-by: Nick Desaulniers <ndesaulniers@google.com>
Suggested-by: Nick Desaulniers <ndesaulniers@google.com>
Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2018-10-09 17:04:22 -05:00
..
dce80 amdgpu/dc: remove pointless returns in the i2caux constructor paths. (v2) 2017-09-29 13:02:21 -04:00
dce100 drm/amd/display: fix bug where we are creating bogus i2c aux 2018-07-13 14:47:25 -05:00
dce110 drm/amd/display: Use proper enums in process_channel_reply 2018-10-09 17:04:22 -05:00
dce112 drm/amd/display: fix bug where we are creating bogus i2c aux 2018-07-13 14:47:25 -05:00
dce120 drm/amd/display: fix bug where we are creating bogus i2c aux 2018-07-13 14:47:25 -05:00
dcn10 drm/amd/display: fix bug where we are creating bogus i2c aux 2018-07-13 14:47:25 -05:00
diagnostics amdgpu/dc: remove pointless returns in the i2caux constructor paths. (v2) 2017-09-29 13:02:21 -04:00
aux_engine.c drm/amd/display: clean code for transition event log. 2018-09-10 22:44:16 -05:00
aux_engine.h drm/amd/display: Break out function to simply read aux reply 2018-07-13 14:48:29 -05:00
engine_base.c amdgpu/dc: remove pointless returns in the i2caux constructor paths. (v2) 2017-09-29 13:02:21 -04:00
engine.h drm/amd/display: Decouple aux from i2c 2018-07-24 15:15:50 -05:00
i2c_engine.c amdgpu/dc: remove pointless returns in the i2caux constructor paths. (v2) 2017-09-29 13:02:21 -04:00
i2c_engine.h drm/amd/display: introduce concept of send_reset_length for i2c engines 2018-07-13 14:51:04 -05:00
i2c_generic_hw_engine.c amdgpu/dc: remove pointless returns in the i2caux constructor paths. (v2) 2017-09-29 13:02:21 -04:00
i2c_generic_hw_engine.h amdgpu/dc: remove pointless returns in the i2caux constructor paths. (v2) 2017-09-29 13:02:21 -04:00
i2c_hw_engine.c drm/amd/display: add aux i2c event log. 2018-09-14 15:47:30 -05:00
i2c_hw_engine.h amdgpu/dc: remove pointless returns in the i2caux constructor paths. (v2) 2017-09-29 13:02:21 -04:00
i2c_sw_engine.c amdgpu/dc: remove pointless returns in the i2caux constructor paths. (v2) 2017-09-29 13:02:21 -04:00
i2c_sw_engine.h amdgpu/dc: remove pointless returns in the i2caux constructor paths. (v2) 2017-09-29 13:02:21 -04:00
i2caux.c drm/amd/display: Add Raven2 definitions in dc 2018-09-14 09:36:47 -05:00
i2caux.h amdgpu/dc: remove pointless returns in the i2caux constructor paths. (v2) 2017-09-29 13:02:21 -04:00
Makefile Revert "drm/amdgpu/display: Replace CONFIG_DRM_AMD_DC_DCN1_0 with CONFIG_X86" 2018-08-21 14:32:28 -05:00