/* @chip: address of the chip which is to be written @addr: i2c data address within the chip @alen: length of the i2c data address (1..2 bytes) @buffer: where to find the data to be written @len: how much byte do we want to read  */
int i2c_write(uchar chip, uint addr, int alen, uchar *buffer, int len)
/* @chip: address of the chip which is to be written @addr: i2c data address within the chip @alen: length of the i2c data address (1..2 bytes) @buffer: where to find the data to be written @len: how much byte do we want to read  */
int i2c_write(uchar chip, uint addr, int alen, uchar *buffer, int len)
{
	u8 addr_bytes[4];
	addr_bytes[0] = (addr >> 0) & 0xFF;
	addr_bytes[1] = (addr >> 8) & 0xFF;
	addr_bytes[2] = (addr >> 16) & 0xFF;
	addr_bytes[3] = (addr >> 24) & 0xFF;
	return __i2c_write(base_glob, chip, addr_bytes, alen, buffer, len);
}