/* @twsi: The MVTWSI register structure to use. @chip: The chip address to probe. @tick: The duration of a clock cycle at the current I2C speed.  */
static int __twsi_i2c_probe_chip(struct mvtwsi_registers *twsi, uchar chip, uint tick)
/* @twsi: The MVTWSI register structure to use. @chip: The chip address to probe. @tick: The duration of a clock cycle at the current I2C speed.  */
static int __twsi_i2c_probe_chip(struct mvtwsi_registers *twsi, uchar chip, uint tick)
{
	u8 dummy_byte;
	int status;
	status = i2c_begin(twsi, MVTWSI_STATUS_START, (chip << 1) | 1, tick);
	if (status == 0)
		status = twsi_recv(twsi, &dummy_byte, MVTWSI_READ_NAK, tick);
	twsi_stop(twsi, tick);
	return status;
}