Skip to content

Commit b5a608f

Browse files
JuliaLawalldavem330
authored andcommitted
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>
1 parent 0860bf9 commit b5a608f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

drivers/ide/it821x.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,7 @@ static void it821x_quirkproc(ide_drive_t *drive)
508508

509509
}
510510

511-
static struct ide_dma_ops it821x_pass_through_dma_ops = {
511+
static const struct ide_dma_ops it821x_pass_through_dma_ops = {
512512
.dma_host_set = ide_dma_host_set,
513513
.dma_setup = ide_dma_setup,
514514
.dma_start = it821x_dma_start,

drivers/ide/trm290.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ static const struct ide_tp_ops trm290_tp_ops = {
314314
.output_data = ide_output_data,
315315
};
316316

317-
static struct ide_dma_ops trm290_dma_ops = {
317+
static const struct ide_dma_ops trm290_dma_ops = {
318318
.dma_host_set = trm290_dma_host_set,
319319
.dma_setup = trm290_dma_setup,
320320
.dma_start = trm290_dma_start,

0 commit comments

Comments
 (0)