/* @buf: buffer to store the product name @eeprom_bus: i2c bus num of the eeprom */
int cl_eeprom_get_product_name(uchar *buf, uint eeprom_bus)
/* @buf: buffer to store the product name @eeprom_bus: i2c bus num of the eeprom */
int cl_eeprom_get_product_name(uchar *buf, uint eeprom_bus)
{
	int err;
	if (buf == NULL)
		return -EINVAL;
	err = cl_eeprom_setup(eeprom_bus);
	if (err)
		return err;
	err = cl_eeprom_read(PRODUCT_NAME_OFFSET, buf, PRODUCT_NAME_SIZE);
	if (!err)
		buf[PRODUCT_NAME_SIZE - 1] = '\0';
	return err;
}