diff options
author | Julia Lawall <julia.lawall@lip6.fr> | 2015-11-15 15:36:30 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-01-18 14:12:33 -0500 |
commit | b5a608fb28c84ef3e569b6929e58977f4e2ce480 (patch) | |
tree | 3d7393a163b6f9b967b99e81dfe9048715108a97 | |
parent | 0860bf94712f34f5920193004dfed25408f078b1 (diff) |
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>
-rw-r--r-- | drivers/ide/it821x.c | 2 | ||||
-rw-r--r-- | drivers/ide/trm290.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/ide/it821x.c b/drivers/ide/it821x.c index f01ba4606be0..04029d18a696 100644 --- a/drivers/ide/it821x.c +++ b/drivers/ide/it821x.c | |||
@@ -508,7 +508,7 @@ static void it821x_quirkproc(ide_drive_t *drive) | |||
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 | .dma_host_set = ide_dma_host_set, | 512 | .dma_host_set = ide_dma_host_set, |
513 | .dma_setup = ide_dma_setup, | 513 | .dma_setup = ide_dma_setup, |
514 | .dma_start = it821x_dma_start, | 514 | .dma_start = it821x_dma_start, |
diff --git a/drivers/ide/trm290.c b/drivers/ide/trm290.c index 0069f6ce74cf..d550b379b0f1 100644 --- a/drivers/ide/trm290.c +++ b/drivers/ide/trm290.c | |||
@@ -314,7 +314,7 @@ static const struct ide_tp_ops trm290_tp_ops = { | |||
314 | .output_data = ide_output_data, | 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 | .dma_host_set = trm290_dma_host_set, | 318 | .dma_host_set = trm290_dma_host_set, |
319 | .dma_setup = trm290_dma_setup, | 319 | .dma_setup = trm290_dma_setup, |
320 | .dma_start = trm290_dma_start, | 320 | .dma_start = trm290_dma_start, |