diff options
| author | Noralf Trønnes <[email protected]> | 2019-07-19 15:59:12 +0000 |
|---|---|---|
| committer | Noralf Trønnes <[email protected]> | 2019-07-23 13:47:33 +0000 |
| commit | d23d4d4dac0119c7bfba63342a86a68b38c01779 (patch) | |
| tree | 1478832fab43424a1759f4528d384baaa35a4956 /drivers/gpu/drm/tinydrm/core/tinydrm-pipe.c | |
| parent | drm/tinydrm: Clean up tinydrm_spi_transfer() (diff) | |
| download | kernel-d23d4d4dac0119c7bfba63342a86a68b38c01779.tar.gz kernel-d23d4d4dac0119c7bfba63342a86a68b38c01779.zip | |
drm/tinydrm: Move tinydrm_spi_transfer()
This is only used by mipi-dbi drivers so move it there.
The reason this isn't moved to the SPI subsystem is that it will in a
later patch pass a dummy rx buffer for SPI controllers that need this.
Low memory boards (64MB) can run into a problem allocating such a "large"
contiguous buffer on every transfer after a long up time.
This leaves a very specific use case, so we'll keep the function here.
mipi-dbi will first go through a refactoring though, before this will
be done.
Remove SPI todo entry now that we're done with the tinydrm.ko SPI code.
v2: Drop moving the mipi_dbi_spi_init() declaration (Sam)
Cc: David Lechner <[email protected]>
Reviewed-by: Sam Ravnborg <[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')
| -rw-r--r-- | drivers/gpu/drm/tinydrm/core/tinydrm-pipe.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/tinydrm/core/tinydrm-pipe.c b/drivers/gpu/drm/tinydrm/core/tinydrm-pipe.c index ed798fd95152..a62d1dfe87f8 100644 --- a/drivers/gpu/drm/tinydrm/core/tinydrm-pipe.c +++ b/drivers/gpu/drm/tinydrm/core/tinydrm-pipe.c @@ -3,6 +3,8 @@ * Copyright (C) 2016 Noralf Trønnes */ +#include <linux/module.h> + #include <drm/drm_atomic_helper.h> #include <drm/drm_drv.h> #include <drm/drm_gem_framebuffer_helper.h> @@ -177,3 +179,5 @@ int tinydrm_display_pipe_init(struct drm_device *drm, format_count, modifiers, connector); } EXPORT_SYMBOL(tinydrm_display_pipe_init); + +MODULE_LICENSE("GPL"); |
