summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJulia Lawall <Julia.Lawall@lip6.fr>2015-12-30 05:21:57 -0500
committerTakashi Iwai <tiwai@suse.de>2015-12-30 16:49:37 -0500
commit064e186f8fe7f5e1c59f74bc455ac3aa18efa503 (patch)
treeae41f157cca18ae3f9a0005de8513659a961e49f
parentf80e39e0225c01ee68764ef7594c3a29ab5ebabb (diff)
ALSA: atiixp: constify atiixp_dma_ops structures
The atiixp_dma_ops structures are never modified, so declare them as const. Done with the help of Coccinelle. Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr> Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r--sound/pci/atiixp.c6
-rw-r--r--sound/pci/atiixp_modem.c4
2 files changed, 5 insertions, 5 deletions
diff --git a/sound/pci/atiixp.c b/sound/pci/atiixp.c
index 1028fc8bdff5..2ce0022dbc46 100644
--- a/sound/pci/atiixp.c
+++ b/sound/pci/atiixp.c
@@ -1219,7 +1219,7 @@ static struct ac97_pcm atiixp_pcm_defs[] = {
1219 }, 1219 },
1220}; 1220};
1221 1221
1222static struct atiixp_dma_ops snd_atiixp_playback_dma_ops = { 1222static const struct atiixp_dma_ops snd_atiixp_playback_dma_ops = {
1223 .type = ATI_DMA_PLAYBACK, 1223 .type = ATI_DMA_PLAYBACK,
1224 .llp_offset = ATI_REG_OUT_DMA_LINKPTR, 1224 .llp_offset = ATI_REG_OUT_DMA_LINKPTR,
1225 .dt_cur = ATI_REG_OUT_DMA_DT_CUR, 1225 .dt_cur = ATI_REG_OUT_DMA_DT_CUR,
@@ -1228,7 +1228,7 @@ static struct atiixp_dma_ops snd_atiixp_playback_dma_ops = {
1228 .flush_dma = atiixp_out_flush_dma, 1228 .flush_dma = atiixp_out_flush_dma,
1229}; 1229};
1230 1230
1231static struct atiixp_dma_ops snd_atiixp_capture_dma_ops = { 1231static const struct atiixp_dma_ops snd_atiixp_capture_dma_ops = {
1232 .type = ATI_DMA_CAPTURE, 1232 .type = ATI_DMA_CAPTURE,
1233 .llp_offset = ATI_REG_IN_DMA_LINKPTR, 1233 .llp_offset = ATI_REG_IN_DMA_LINKPTR,
1234 .dt_cur = ATI_REG_IN_DMA_DT_CUR, 1234 .dt_cur = ATI_REG_IN_DMA_DT_CUR,
@@ -1237,7 +1237,7 @@ static struct atiixp_dma_ops snd_atiixp_capture_dma_ops = {
1237 .flush_dma = atiixp_in_flush_dma, 1237 .flush_dma = atiixp_in_flush_dma,
1238}; 1238};
1239 1239
1240static struct atiixp_dma_ops snd_atiixp_spdif_dma_ops = { 1240static const struct atiixp_dma_ops snd_atiixp_spdif_dma_ops = {
1241 .type = ATI_DMA_SPDIF, 1241 .type = ATI_DMA_SPDIF,
1242 .llp_offset = ATI_REG_SPDF_DMA_LINKPTR, 1242 .llp_offset = ATI_REG_SPDF_DMA_LINKPTR,
1243 .dt_cur = ATI_REG_SPDF_DMA_DT_CUR, 1243 .dt_cur = ATI_REG_SPDF_DMA_DT_CUR,
diff --git a/sound/pci/atiixp_modem.c b/sound/pci/atiixp_modem.c
index 27ed678a46df..c534552963e7 100644
--- a/sound/pci/atiixp_modem.c
+++ b/sound/pci/atiixp_modem.c
@@ -970,7 +970,7 @@ static struct snd_pcm_ops snd_atiixp_capture_ops = {
970 .pointer = snd_atiixp_pcm_pointer, 970 .pointer = snd_atiixp_pcm_pointer,
971}; 971};
972 972
973static struct atiixp_dma_ops snd_atiixp_playback_dma_ops = { 973static const struct atiixp_dma_ops snd_atiixp_playback_dma_ops = {
974 .type = ATI_DMA_PLAYBACK, 974 .type = ATI_DMA_PLAYBACK,
975 .llp_offset = ATI_REG_MODEM_OUT_DMA1_LINKPTR, 975 .llp_offset = ATI_REG_MODEM_OUT_DMA1_LINKPTR,
976 .dt_cur = ATI_REG_MODEM_OUT_DMA1_DT_CUR, 976 .dt_cur = ATI_REG_MODEM_OUT_DMA1_DT_CUR,
@@ -979,7 +979,7 @@ static struct atiixp_dma_ops snd_atiixp_playback_dma_ops = {
979 .flush_dma = atiixp_out_flush_dma, 979 .flush_dma = atiixp_out_flush_dma,
980}; 980};
981 981
982static struct atiixp_dma_ops snd_atiixp_capture_dma_ops = { 982static const struct atiixp_dma_ops snd_atiixp_capture_dma_ops = {
983 .type = ATI_DMA_CAPTURE, 983 .type = ATI_DMA_CAPTURE,
984 .llp_offset = ATI_REG_MODEM_IN_DMA_LINKPTR, 984 .llp_offset = ATI_REG_MODEM_IN_DMA_LINKPTR,
985 .dt_cur = ATI_REG_MODEM_IN_DMA_DT_CUR, 985 .dt_cur = ATI_REG_MODEM_IN_DMA_DT_CUR,