[U-Boot] [PATCH 4/9 v2] A driver for the S6E63D6 SPI display controller from Samsung

Anatolij Gustschin agust at denx.de
Thu Feb 5 17:42:25 CET 2009


Guennadi Liakhovetski wrote:

> diff --git a/drivers/video/s6e63d6.c b/drivers/video/s6e63d6.c
> new file mode 100644
> index 0000000..4a59f05
> --- /dev/null
> +++ b/drivers/video/s6e63d6.c
<snip>
> +static int send_word(struct s6e63d6 *data, u8 rs, u16 word)
> +{
> +	u32 buf8 = 0x70 | data->id | (rs & 2);
> +	u32 buf16 = cpu_to_le16(word);
> +	u32 buf_in;
> +	int err;
> +
> +	err = spi_xfer(data->slave, 8, &buf8, &buf_in, SPI_XFER_BEGIN);
> +	if (err)
> +		return err;
> +	return spi_xfer(data->slave, 16, &buf16, &buf_in, SPI_XFER_END);

please add an empty line between two return statements here, Thanks!

Best regards,
Anatolij



More information about the U-Boot mailing list