FreeBSD/sys/dev/drm2/drm_dp_iic_helper.c
/*
 * Stop the I2C transaction. This closes out the link, sending
 * a bare address packet with the MOT bit turned off
 */
Stop the I2C transaction. This closes out the link, sending
a bare address packet with the MOT bit turned off
Stop the I2C transaction . This closes out the link sending a bare address packet with the MOT bit turned off
static void
iic_dp_aux_stop(device_t idev, bool reading)
{
	struct iic_dp_aux_data *aux_data;
	int mode;
	aux_data = device_get_softc(idev);
	mode = MODE_I2C_STOP;
	if (reading)
		mode |= MODE_I2C_READ;
	else
		mode |= MODE_I2C_WRITE;
	if (aux_data->running) {
		(void)iic_dp_aux_transaction(idev, mode, 0, NULL);
		aux_data->running = false;
	}
}
static void iic_dp_aux_stop ( device_t idev , bool reading ) { struct iic_dp_aux_data * aux_data ; int mode ; aux_data = device_get_softc ( idev ) ; mode = MODE_I2C_STOP ; if ( reading ) mode |= MODE_I2C_READ ; else mode |= MODE_I2C_WRITE ; if ( aux_data -> running ) { ( void ) iic_dp_aux_transaction ( idev , mode , 0 , NULL ) ; aux_data -> running = false ; } }
Stop the I2C transaction.
Stop the I2C transaction .