提交 75f21631 编写于 作者: L Laxman Dewangan 提交者: Uwe Kleine-König

dma: tegra: make data used as *of_device_id.data const

Since of_device_id.data is declared as a pointer to const data a few
more consts can be added in this driver.

[ukl: split Laxman's patch to prevent warnings in the middle of the
series. Original patch was sent with msgid
1346217447-19730-1-git-send-email-ldewangan@nvidia.com]
Signed-off-by: NLaxman Dewangan <ldewangan@nvidia.com>
Acked-by: NStephen Warren <swarren@wwwdotorg.org>
Acked-by: NVinod Koul <vinod.koul@linux.intel.com>
Signed-off-by: NUwe Kleine-König <u.kleine-koenig@pengutronix.de>
上级 6d99c4c5
...@@ -1166,14 +1166,14 @@ static void tegra_dma_free_chan_resources(struct dma_chan *dc) ...@@ -1166,14 +1166,14 @@ static void tegra_dma_free_chan_resources(struct dma_chan *dc)
} }
/* Tegra20 specific DMA controller information */ /* Tegra20 specific DMA controller information */
static struct tegra_dma_chip_data tegra20_dma_chip_data = { static const struct tegra_dma_chip_data tegra20_dma_chip_data = {
.nr_channels = 16, .nr_channels = 16,
.max_dma_count = 1024UL * 64, .max_dma_count = 1024UL * 64,
}; };
#if defined(CONFIG_OF) #if defined(CONFIG_OF)
/* Tegra30 specific DMA controller information */ /* Tegra30 specific DMA controller information */
static struct tegra_dma_chip_data tegra30_dma_chip_data = { static const struct tegra_dma_chip_data tegra30_dma_chip_data = {
.nr_channels = 32, .nr_channels = 32,
.max_dma_count = 1024UL * 64, .max_dma_count = 1024UL * 64,
}; };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册