]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
dmaengine: tegra: reduce channel name field size
authorBen Dooks <ben.dooks@codethink.co.uk>
Wed, 21 Nov 2018 16:13:22 +0000 (16:13 +0000)
committerVinod Koul <vkoul@kernel.org>
Mon, 7 Jan 2019 04:22:42 +0000 (09:52 +0530)
The name field is used for "apbdma.%d" which is rarely going to be
more than 10 bytes, so reduce the size from 30 to 12. This is only
being used by the interrupt registration, so is not critical to the
operation of the driver either.

Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
Acked-by: Jon Hunter <jonathanh@nvidia.com>
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/tegra20-apb-dma.c

index ec8938a2ecab494fcb4b2487b9ad91c0a151e2ab..c60c3f7cad5fb74e6f96f07fdd2919f43ec8ff9d 100644 (file)
@@ -186,7 +186,7 @@ typedef void (*dma_isr_handler)(struct tegra_dma_channel *tdc,
 /* tegra_dma_channel: Channel specific information */
 struct tegra_dma_channel {
        struct dma_chan         dma_chan;
-       char                    name[30];
+       char                    name[12];
        bool                    config_init;
        int                     id;
        int                     irq;