/* Probe for I2C device at specified address. Returns 0 for "success" to match rest of this file. Leave bus in "reasonable" state for further commands.  */
static int i2c_probe(struct ipath_devdata *dd, int devaddr)
/* Probe for I2C device at specified address. Returns 0 for "success" to match rest of this file. Leave bus in "reasonable" state for further commands.  */
static int i2c_probe(struct ipath_devdata *dd, int devaddr)
{
	int ret = 0;
	ret = eeprom_reset(dd);
	if (ret) {
		ipath_dev_err(dd, "Failed reset probing device 0x%02X\n",
			      devaddr);
		return ret;
	}
	ret = i2c_startcmd(dd, devaddr | READ_CMD);
	if (ret)
		ipath_cdbg(VERBOSE, "Failed startcmd for device 0x%02X\n",
			   devaddr);
	else {
		int data;
		data = rd_byte(dd);
		stop_cmd(dd);
		ipath_cdbg(VERBOSE, "Response from device 0x%02X\n", devaddr);
	}
	return ret;
}