Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ide: constify ide_dma_ops structures

The ide_dma_ops structures are never modified, so declare these as const,
as is already done for the others.

Done with the help of Coccinelle.

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Julia Lawall and committed by
David S. Miller
b5a608fb 0860bf94

+2 -2
+1 -1
drivers/ide/it821x.c
··· 508 508 509 509 } 510 510 511 - static struct ide_dma_ops it821x_pass_through_dma_ops = { 511 + static const struct ide_dma_ops it821x_pass_through_dma_ops = { 512 512 .dma_host_set = ide_dma_host_set, 513 513 .dma_setup = ide_dma_setup, 514 514 .dma_start = it821x_dma_start,
+1 -1
drivers/ide/trm290.c
··· 314 314 .output_data = ide_output_data, 315 315 }; 316 316 317 - static struct ide_dma_ops trm290_dma_ops = { 317 + static const struct ide_dma_ops trm290_dma_ops = { 318 318 .dma_host_set = trm290_dma_host_set, 319 319 .dma_setup = trm290_dma_setup, 320 320 .dma_start = trm290_dma_start,