SH: constify multiple DMA related objects and references to them
Lists of DMA channels and slaves are not changed, make them constant. Besides, SH7724 channel and slave configuration of both DMA controllers is identical, remove the extra copy of the configuration data. Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
This commit is contained in:

committed by
Paul Mundt

parent
6b6b18e62c
commit
5bac942db3
@@ -233,7 +233,7 @@ static struct platform_device rtc_device = {
|
||||
};
|
||||
|
||||
/* DMA */
|
||||
static struct sh_dmae_channel sh7780_dmae0_channels[] = {
|
||||
static const struct sh_dmae_channel sh7780_dmae0_channels[] = {
|
||||
{
|
||||
.offset = 0,
|
||||
.dmars = 0,
|
||||
@@ -261,7 +261,7 @@ static struct sh_dmae_channel sh7780_dmae0_channels[] = {
|
||||
}
|
||||
};
|
||||
|
||||
static struct sh_dmae_channel sh7780_dmae1_channels[] = {
|
||||
static const struct sh_dmae_channel sh7780_dmae1_channels[] = {
|
||||
{
|
||||
.offset = 0,
|
||||
}, {
|
||||
@@ -277,7 +277,7 @@ static struct sh_dmae_channel sh7780_dmae1_channels[] = {
|
||||
}
|
||||
};
|
||||
|
||||
static unsigned int ts_shift[] = TS_SHIFT;
|
||||
static const unsigned int ts_shift[] = TS_SHIFT;
|
||||
|
||||
static struct sh_dmae_pdata dma0_platform_data = {
|
||||
.channel = sh7780_dmae0_channels,
|
||||
|
Reference in New Issue
Block a user