From 7c8718b81e47b0ddefb1d971b9383be9cbcd92e1 Mon Sep 17 00:00:00 2001 From: Sameer Pujar Date: Fri, 19 Apr 2019 21:02:08 +0530 Subject: [PATCH] ASoC: tegra-alt: remove redundant variable from dma data Structure tegra_alt_pcm_dma_params has member 'wrap', which is not used anywhere except for initialization in admaif driver. Hence removed from the dma data structure. Bug 200503387 Change-Id: I8cf9d0eb5f2c05c79a472f9143dfe2e96083b8e3 Signed-off-by: Sameer Pujar Reviewed-on: https://git-master.nvidia.com/r/2102677 GVS: Gerrit_Virtual_Submit Reviewed-by: Uday Gupta Reviewed-by: Jonathan Hunter Reviewed-by: Ravindra Lokhande Reviewed-by: mobile promotions Tested-by: mobile promotions --- sound/soc/tegra-alt/include/tegra_pcm_alt.h | 3 +-- sound/soc/tegra-alt/tegra210_admaif_alt.c | 2 -- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/sound/soc/tegra-alt/include/tegra_pcm_alt.h b/sound/soc/tegra-alt/include/tegra_pcm_alt.h index 165b1263..452377c2 100644 --- a/sound/soc/tegra-alt/include/tegra_pcm_alt.h +++ b/sound/soc/tegra-alt/include/tegra_pcm_alt.h @@ -2,7 +2,7 @@ * tegra_pcm_alt.h - Definitions for Tegra PCM driver * * Author: Stephen Warren - * Copyright (c) 2011-2017 NVIDIA CORPORATION. All rights reserved. + * Copyright (c) 2011-2019 NVIDIA CORPORATION. All rights reserved. * * Based on code copyright/by: * @@ -35,7 +35,6 @@ struct tegra_alt_pcm_dma_params { unsigned long addr; - unsigned long wrap; unsigned long width; unsigned long req_sel; const char *chan_name; diff --git a/sound/soc/tegra-alt/tegra210_admaif_alt.c b/sound/soc/tegra-alt/tegra210_admaif_alt.c index b75fa96c..5df13d71 100644 --- a/sound/soc/tegra-alt/tegra210_admaif_alt.c +++ b/sound/soc/tegra-alt/tegra210_admaif_alt.c @@ -1261,7 +1261,6 @@ static int tegra_admaif_probe(struct platform_device *pdev) TEGRA_ADMAIF_XBAR_RX_FIFO_READ + (i * TEGRA_ADMAIF_CHANNEL_REG_STRIDE); - admaif->playback_dma_data[i].wrap = 4; admaif->playback_dma_data[i].width = 32; admaif->playback_dma_data[i].req_sel = i + 1; if (of_property_read_string_index(pdev->dev.of_node, @@ -1283,7 +1282,6 @@ static int tegra_admaif_probe(struct platform_device *pdev) } admaif->playback_dma_data[i].buffer_size = buffer_size; - admaif->capture_dma_data[i].wrap = 4; admaif->capture_dma_data[i].width = 32; admaif->capture_dma_data[i].req_sel = i + 1; if (of_property_read_string_index(pdev->dev.of_node,