/* Only data is little endian, addr has cpu endianess  */
static void hpi_write_words_le16(struct c67x00_device *dev, u16 addr, __le16 *data, u16 count)
/* Only data is little endian, addr has cpu endianess  */
static void hpi_write_words_le16(struct c67x00_device *dev, u16 addr, __le16 *data, u16 count)
{
	unsigned long flags;
	int i;
	spin_lock_irqsave(&dev->hpi.lock, flags);
	hpi_write_reg(dev, HPI_ADDR, addr);
	for (i = 0; i < count; i++)
		hpi_write_reg(dev, HPI_DATA, le16_to_cpu(*data++));
	spin_unlock_irqrestore(&dev->hpi.lock, flags);
}