drivers/gpio/gpio-max7301.c
static int max7301_spi_write(struct device *dev, unsigned int reg,
				unsigned int val)
{
	struct spi_device *spi = to_spi_device(dev);
	u16 word = ((reg & 0x7F) << 8) | (val & 0xFF);

	return spi_write(spi, (const u8 *)&word, sizeof(word));
}
/* A write to the MAX7301 means one message with one transfer */
A write to the MAX7301 means one message with one transfer
A write to the MAX7301 means one message with one transfer
static int max7301_spi_write(struct device *dev, unsigned int reg,
				unsigned int val)
{
	struct spi_device *spi = to_spi_device(dev);
	u16 word = ((reg & 0x7F) << 8) | (val & 0xFF);
	return spi_write(spi, (const u8 *)&word, sizeof(word));
}
static int max7301_spi_write ( struct device * dev , unsigned int reg , unsigned int val ) { struct spi_device * spi = to_spi_device ( dev ) ; u16 word = ( ( reg & 0x7F ) << 8 ) | ( val & 0xFF ) ; return spi_write ( spi , ( const u8 * ) & word , sizeof ( word ) ) ; }
A write to the MAX7301 means one message with one transfer
A write to the MAX7301 means one message with one transfer