Skip to content

Commit

Permalink
ide: constify ide_dma_ops structures
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
JuliaLawall authored and davem330 committed Jan 18, 2016
1 parent 0860bf9 commit b5a608f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion drivers/ide/it821x.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion drivers/ide/trm290.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit b5a608f

Please sign in to comment.