/* Stop the I2C transaction. This closes out the link, sending a bare address packet with the MOT bit turned off  */
static void i2c_algo_dp_aux_stop(struct i2c_adapter *adapter, bool reading)
/* Stop the I2C transaction. This closes out the link, sending a bare address packet with the MOT bit turned off  */
static void i2c_algo_dp_aux_stop(struct i2c_adapter *adapter, bool reading)
{
	struct i2c_algo_dp_aux_data *algo_data = adapter->algo_data;
	int mode = MODE_I2C_STOP;
	if (reading)
		mode |= MODE_I2C_READ;
	else
		mode |= MODE_I2C_WRITE;
	if (algo_data->running) {
		(void) i2c_algo_dp_aux_transaction(adapter, mode, 0, NULL);
		algo_data->running = false;
	}
}