ide: constify ide_dma_ops structures
authorJulia Lawall <julia.lawall@lip6.fr>
Sun, 15 Nov 2015 20:36:30 +0000 (21:36 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 18 Jan 2016 19:12:33 +0000 (14:12 -0500)
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>
drivers/ide/it821x.c
drivers/ide/trm290.c

index f01ba4606be0eb412ea6347d9f6c14ca04801710..04029d18a6966b131e3621f3f82ce4fdde1d6309 100644 (file)
@@ -508,7 +508,7 @@ static void it821x_quirkproc(ide_drive_t *drive)
 
 }
 
-static struct ide_dma_ops it821x_pass_through_dma_ops = {
+static const struct ide_dma_ops it821x_pass_through_dma_ops = {
        .dma_host_set           = ide_dma_host_set,
        .dma_setup              = ide_dma_setup,
        .dma_start              = it821x_dma_start,
index 0069f6ce74cf507071119105de916de5ead8a989..d550b379b0f11190e2d848e5d4b983201d6e71ff 100644 (file)
@@ -314,7 +314,7 @@ static const struct ide_tp_ops trm290_tp_ops = {
        .output_data            = ide_output_data,
 };
 
-static struct ide_dma_ops trm290_dma_ops = {
+static const struct ide_dma_ops trm290_dma_ops = {
        .dma_host_set           = trm290_dma_host_set,
        .dma_setup              = trm290_dma_setup,
        .dma_start              = trm290_dma_start,
This page took 0.108537 seconds and 5 git commands to generate.