diff options
| author | Noralf Trønnes <[email protected]> | 2019-07-19 15:59:11 +0000 |
|---|---|---|
| committer | Noralf Trønnes <[email protected]> | 2019-07-23 13:46:56 +0000 |
| commit | 083a6c23b9ecf478265bb27ccacb8d587732058e (patch) | |
| tree | 8eb5c8f95bc4b54f2180375b98d4eb153e87d5f1 /drivers/gpu/drm/tinydrm/core/tinydrm-pipe.c | |
| parent | drm/tinydrm: Remove tinydrm_spi_max_transfer_size() (diff) | |
| download | kernel-083a6c23b9ecf478265bb27ccacb8d587732058e.tar.gz kernel-083a6c23b9ecf478265bb27ccacb8d587732058e.zip | |
drm/tinydrm: Clean up tinydrm_spi_transfer()
Prep work before moving the function to mipi-dbi.
tinydrm_spi_transfer() was made to support one class of drivers in
drivers/staging/fbtft that has not been converted to DRM yet, so strip
away the unused functionality:
- Start byte (header) is not used.
- No driver relies on the automatic 16-bit byte swapping on little endian
machines with SPI controllers only supporting 8 bits per word.
Other changes:
- No need to initialize ret
- No need for the WARN since mipi-dbi only uses 8 and 16 bpw.
- Use spi_message_init_with_transfers()
Cc: David Lechner <[email protected]>
Acked-by: : David Lechner <[email protected]>
Signed-off-by: Noralf Trønnes <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/tinydrm/core/tinydrm-pipe.c')
0 files changed, 0 insertions, 0 deletions
