FreeBSD/sys/dev/drm2/drm_dp_iic_helper.c
/*
 * Write a single byte to the current I2C address, the
 * the I2C link must be running or this returns -EIO
 */
Write a single byte to the current I2C address, the
the I2C link must be running or this returns -EIO
Write a single byte to the current I2C address the the I2C link must be running or this returns - EIO
static int
iic_dp_aux_put_byte(device_t idev, u8 byte)
{
	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_WRITE, byte, NULL);
	return (ret);
}
static int iic_dp_aux_put_byte ( device_t idev , u8 byte ) { 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_WRITE , byte , NULL ) ; return ( ret ) ; }
Write a single byte to the current I2C address, the
 the I2C link must be running or this returns -EIO
Write a single byte to the current I2C address the the I2C link must be running or this returns - EIO