From b5a608fb28c84ef3e569b6929e58977f4e2ce480 Mon Sep 17 00:00:00 2001 From: Julia Lawall Date: Sun, 15 Nov 2015 21:36:30 +0100 Subject: 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 Signed-off-by: David S. Miller --- drivers/ide/it821x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers/ide/it821x.c') 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) } -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, -- cgit v1.2.1