]> asedeno.scripts.mit.edu Git - linux.git/commit
spi: Add spi_is_bpw_supported()
authorNoralf Trønnes <noralf@tronnes.org>
Fri, 12 Apr 2019 09:41:30 +0000 (11:41 +0200)
committerMark Brown <broonie@kernel.org>
Fri, 12 Apr 2019 10:13:36 +0000 (11:13 +0100)
commite6f3f7e4dc76eb8d8a546dc66621a02c5c84f4ac
treeb8ff75206fc95d2cdbdd66097ced05a7fa66e9bd
parent9e98c678c2d6ae3a17cb2de55d17f69dddaa231b
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>
include/linux/spi/spi.h