FreeBSD/sys/dev/drm2/drm_dp_iic_helper.c
/*
 * Read a single byte from the current I2C address, the
 * I2C link must be running or this returns -EIO
 */
Read a single byte from the current I2C address, the
I2C link must be running or this returns -EIO
Read a single byte from the current I2C address the I2C link must be running or this returns - EIO
static int
iic_dp_aux_get_byte(device_t idev, u8 *byte_ret)
{
	struct iic_dp_aux_data *aux_data;
	int ret;
	aux_data = device_get_softc(idev);
	if (!aux_data->running)
		return (-EIO);
	ret = iic_dp_aux_transaction(idev, MODE_I2C_READ, 0, byte_ret);
	return (ret);
}
static int iic_dp_aux_get_byte ( device_t idev , u8 * byte_ret ) { struct iic_dp_aux_data * aux_data ; int ret ; aux_data = device_get_softc ( idev ) ; if ( ! aux_data -> running ) return ( - EIO ) ; ret = iic_dp_aux_transaction ( idev , MODE_I2C_READ , 0 , byte_ret ) ; return ( ret ) ; }
Read a single byte from the current I2C address, the
 I2C link must be running or this returns -EIO
Read a single byte from the current I2C address the I2C link must be running or this returns - EIO