Commit b5a608fb authored by Julia Lawall's avatar Julia Lawall Committed by David S. Miller

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: default avatarJulia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 0860bf94
...@@ -508,7 +508,7 @@ static void it821x_quirkproc(ide_drive_t *drive) ...@@ -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_host_set = ide_dma_host_set,
.dma_setup = ide_dma_setup, .dma_setup = ide_dma_setup,
.dma_start = it821x_dma_start, .dma_start = it821x_dma_start,
......
...@@ -314,7 +314,7 @@ static const struct ide_tp_ops trm290_tp_ops = { ...@@ -314,7 +314,7 @@ static const struct ide_tp_ops trm290_tp_ops = {
.output_data = ide_output_data, .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_host_set = trm290_dma_host_set,
.dma_setup = trm290_dma_setup, .dma_setup = trm290_dma_setup,
.dma_start = trm290_dma_start, .dma_start = trm290_dma_start,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment