Re: [PATCH 1/2] spi: Add spi_is_bpw_supported()

2019-04-12 Thread Mark Brown
On Fri, Apr 12, 2019 at 11:41:30AM +0200, Noralf Trønnes wrote: > This let SPI clients check if the controller supports a particular word > width. drivers/gpu/drm/tinydrm/mipi-dbi.c will use this to determine if > the controller supports 16-bit for RGB565 pixels. If it doesn't it will > swap the

[PATCH 1/2] spi: Add spi_is_bpw_supported()

2019-04-12 Thread Noralf Trønnes
This let SPI clients check if the controller supports a particular word width. drivers/gpu/drm/tinydrm/mipi-dbi.c will use this to determine if the controller supports 16-bit for RGB565 pixels. If it doesn't it will swap the bytes before transfer on little endian machines. Signed-off-by: Noralf