diff options
author | Laxman Dewangan <ldewangan@nvidia.com> | 2012-03-06 13:55:35 +0530 |
---|---|---|
committer | Simone Willett <swillett@nvidia.com> | 2012-03-06 20:08:27 -0800 |
commit | 86373a7e882d9ce6d45964701ff13c7a2d8b02f5 (patch) | |
tree | e429fc86492d49b52fd9aa95114d942e5c01b640 /arch/arm/mach-tegra/include/mach | |
parent | c16155d9b0a6956e7170c837d824cf3c362a14c2 (diff) |
ARM: tegra: dma: Coding style and general cleanups
Some cleanups:
- Copyright year change
- Properly aligned macro.
- Defined function as static if used only in file.
- Move the macro from header to file if it is only used in driver.
- Returning proper status on callbacks.
- Adding some more comments in code.
- Rewritten some piece of code for better readability.
Change-Id: I778752668a67b849859fd7e0c11f2b7a3f3b1edc
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/87993
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
Diffstat (limited to 'arch/arm/mach-tegra/include/mach')
-rw-r--r-- | arch/arm/mach-tegra/include/mach/dma.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/arch/arm/mach-tegra/include/mach/dma.h b/arch/arm/mach-tegra/include/mach/dma.h index 580d50fd1565..3d26c66a443b 100644 --- a/arch/arm/mach-tegra/include/mach/dma.h +++ b/arch/arm/mach-tegra/include/mach/dma.h @@ -64,8 +64,6 @@ struct tegra_dma_channel; #define TEGRA_DMA_REQ_SEL_SL2B6 28 #define TEGRA_DMA_REQ_SEL_INVALID 31 -#define TEGRA_DMA_MAX_TRANSFER_SIZE 0x10000 - enum tegra_dma_mode { TEGRA_DMA_SHARED = 1, TEGRA_DMA_MODE_CONTINUOUS = 2, @@ -161,7 +159,6 @@ bool tegra_dma_is_req_inflight(struct tegra_dma_channel *ch, int tegra_dma_get_transfer_count(struct tegra_dma_channel *ch, struct tegra_dma_req *req); bool tegra_dma_is_empty(struct tegra_dma_channel *ch); -bool tegra_dma_is_stopped(struct tegra_dma_channel *ch); struct tegra_dma_channel *tegra_dma_allocate_channel(int mode, const char namefmt [ ],...); void tegra_dma_free_channel(struct tegra_dma_channel *ch); |