/* Send a reset sequence consisting of 9 clocks with the data signal high to clock any confused device back into an idle state. Also send a <stop> at the end of the sequence for belts & suspenders.  */
static void i2c_gpio_send_reset(struct gpio_desc *scl, struct gpio_desc *sda, int delay)
/* Send a reset sequence consisting of 9 clocks with the data signal high to clock any confused device back into an idle state. Also send a <stop> at the end of the sequence for belts & suspenders.  */
static void i2c_gpio_send_reset(struct gpio_desc *scl, struct gpio_desc *sda, int delay)
{
	int j;
	for (j = 0; j < 9; j++)
		i2c_gpio_write_bit(scl, sda, delay, 1);
	i2c_gpio_send_stop(scl, sda, delay);
}