aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen Dooks <ben.dooks@codethink.co.uk>2018-11-21 11:13:20 -0500
committerVinod Koul <vkoul@kernel.org>2019-01-06 23:22:41 -0500
commit216a1d7da0660dd7d5f79c48e117de8d8d2da468 (patch)
tree1eae26fd0d4431d535461e35512e077ca5d3cb5c
parente486df39305864604b7e25f2a95d51039517ac57 (diff)
dmaengine: tegra: make byte counters unsigned int
The buffer byte request length and counter are declared as signed integers but the values should never be below zero, so make these unsigned integers instead. Reviewed-by: Dmitry Osipenko <digetx@gmail.com> Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk> Signed-off-by: Vinod Koul <vkoul@kernel.org>
-rw-r--r--drivers/dma/tegra20-apb-dma.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/dma/tegra20-apb-dma.c b/drivers/dma/tegra20-apb-dma.c
index 8219ab88a507..adfd918baedc 100644
--- a/drivers/dma/tegra20-apb-dma.c
+++ b/drivers/dma/tegra20-apb-dma.c
@@ -155,7 +155,7 @@ struct tegra_dma_channel_regs {
155 */ 155 */
156struct tegra_dma_sg_req { 156struct tegra_dma_sg_req {
157 struct tegra_dma_channel_regs ch_regs; 157 struct tegra_dma_channel_regs ch_regs;
158 int req_len; 158 unsigned int req_len;
159 bool configured; 159 bool configured;
160 bool last_sg; 160 bool last_sg;
161 struct list_head node; 161 struct list_head node;
@@ -169,8 +169,8 @@ struct tegra_dma_sg_req {
169 */ 169 */
170struct tegra_dma_desc { 170struct tegra_dma_desc {
171 struct dma_async_tx_descriptor txd; 171 struct dma_async_tx_descriptor txd;
172 int bytes_requested; 172 unsigned int bytes_requested;
173 int bytes_transferred; 173 unsigned int bytes_transferred;
174 enum dma_status dma_status; 174 enum dma_status dma_status;
175 struct list_head node; 175 struct list_head node;
176 struct list_head tx_list; 176 struct list_head tx_list;