/* ipath_eeprom_write - writes data to the eeprom via I2C @dd: the infinipath device @eeprom_offset: where to place data @buffer: data to write @len: number of bytes to write  */
int ipath_eeprom_write(struct ipath_devdata *dd, u8 eeprom_offset, const void *buff, int len)
/* ipath_eeprom_write - writes data to the eeprom via I2C @dd: the infinipath device @eeprom_offset: where to place data @buffer: data to write @len: number of bytes to write  */
int ipath_eeprom_write(struct ipath_devdata *dd, u8 eeprom_offset, const void *buff, int len)
{
	int ret;
	ret = mutex_lock_interruptible(&dd->ipath_eep_lock);
	if (!ret) {
		ret = ipath_eeprom_internal_write(dd, eeprom_offset, buff, len);
		mutex_unlock(&dd->ipath_eep_lock);
	}
	return ret;
}