Fix sign for the error code returned from the driver-specific code.
Noted by: hps Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
6efdf5ae95
commit
074ff8c69c
@ -620,14 +620,14 @@ intel_dp_i2c_aux_ch(device_t idev, int mode, uint8_t write_byte,
|
||||
break;
|
||||
case AUX_NATIVE_REPLY_NACK:
|
||||
DRM_DEBUG_KMS("aux_ch native nack\n");
|
||||
return (EREMOTEIO);
|
||||
return (-EREMOTEIO);
|
||||
case AUX_NATIVE_REPLY_DEFER:
|
||||
DELAY(100);
|
||||
continue;
|
||||
default:
|
||||
DRM_ERROR("aux_ch invalid native reply 0x%02x\n",
|
||||
reply[0]);
|
||||
return (EREMOTEIO);
|
||||
return (-EREMOTEIO);
|
||||
}
|
||||
|
||||
switch (reply[0] & AUX_I2C_REPLY_MASK) {
|
||||
@ -638,14 +638,14 @@ intel_dp_i2c_aux_ch(device_t idev, int mode, uint8_t write_byte,
|
||||
return (0/*reply_bytes - 1*/);
|
||||
case AUX_I2C_REPLY_NACK:
|
||||
DRM_DEBUG_KMS("aux_i2c nack\n");
|
||||
return (EREMOTEIO);
|
||||
return (-EREMOTEIO);
|
||||
case AUX_I2C_REPLY_DEFER:
|
||||
DRM_DEBUG_KMS("aux_i2c defer\n");
|
||||
DELAY(100);
|
||||
break;
|
||||
default:
|
||||
DRM_ERROR("aux_i2c invalid reply 0x%02x\n", reply[0]);
|
||||
return (EREMOTEIO);
|
||||
return (-EREMOTEIO);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user