Commit 33da70bd authored by Alex Deucher's avatar Alex Deucher
Browse files

drm/amd/display/dm: drop hw_support check in amdgpu_dm_i2c_xfer()



DC supports SW i2c as well.  Drop the check.

Reviewed-by: default avatarHarry Wentland <harry.wentland@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 0371dbd4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -8282,7 +8282,7 @@ static int amdgpu_dm_i2c_xfer(struct i2c_adapter *i2c_adap,
	int i;
	int result = -EIO;

	if (!ddc_service->ddc_pin || !ddc_service->ddc_pin->hw_info.hw_supported)
	if (!ddc_service->ddc_pin)
		return result;

	cmd.payloads = kcalloc(num, sizeof(struct i2c_payload), GFP_KERNEL);