spi: Add spi_is_bpw_supported()

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 Trønnes <noralf@tronnes.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
Noralf Trønnes 2019-04-12 11:41:30 +02:00 • committed by Mark Brown
commit e6f3f7e4dc
No known key found for this signature in database
GPG key ID: 24D68B725D5487D0