diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-01-26 14:13:03 -0500 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-01-26 14:13:03 -0500 |
commit | 15ce926ada545cb078711bd9a18c083c93fa01d7 (patch) | |
tree | 9496cda87cae6ef3390c5f350741ad75418dfe8d /include/linux/ide.h | |
parent | f37aaf9edeba3f4ae10d22aefc09c06af9ea39b6 (diff) |
ide: merge ->dma_host_{on,off} methods into ->dma_host_set method
Merge ->dma_host_{on,off} methods into ->dma_host_set method
which takes 'int on' argument.
There should be no functionality changes caused by this patch.
Acked-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'include/linux/ide.h')
-rw-r--r-- | include/linux/ide.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/include/linux/ide.h b/include/linux/ide.h index 140864d63aed..ffb76d0d0814 100644 --- a/include/linux/ide.h +++ b/include/linux/ide.h | |||
@@ -542,14 +542,13 @@ typedef struct hwif_s { | |||
542 | void (*atapi_input_bytes)(ide_drive_t *, void *, u32); | 542 | void (*atapi_input_bytes)(ide_drive_t *, void *, u32); |
543 | void (*atapi_output_bytes)(ide_drive_t *, void *, u32); | 543 | void (*atapi_output_bytes)(ide_drive_t *, void *, u32); |
544 | 544 | ||
545 | void (*dma_host_set)(ide_drive_t *, int); | ||
545 | int (*dma_setup)(ide_drive_t *); | 546 | int (*dma_setup)(ide_drive_t *); |
546 | void (*dma_exec_cmd)(ide_drive_t *, u8); | 547 | void (*dma_exec_cmd)(ide_drive_t *, u8); |
547 | void (*dma_start)(ide_drive_t *); | 548 | void (*dma_start)(ide_drive_t *); |
548 | int (*ide_dma_end)(ide_drive_t *drive); | 549 | int (*ide_dma_end)(ide_drive_t *drive); |
549 | int (*ide_dma_test_irq)(ide_drive_t *drive); | 550 | int (*ide_dma_test_irq)(ide_drive_t *drive); |
550 | void (*ide_dma_clear_irq)(ide_drive_t *drive); | 551 | void (*ide_dma_clear_irq)(ide_drive_t *drive); |
551 | void (*dma_host_on)(ide_drive_t *drive); | ||
552 | void (*dma_host_off)(ide_drive_t *drive); | ||
553 | void (*dma_lost_irq)(ide_drive_t *drive); | 552 | void (*dma_lost_irq)(ide_drive_t *drive); |
554 | void (*dma_timeout)(ide_drive_t *drive); | 553 | void (*dma_timeout)(ide_drive_t *drive); |
555 | 554 | ||
@@ -1160,8 +1159,7 @@ extern void ide_destroy_dmatable(ide_drive_t *); | |||
1160 | extern int ide_release_dma(ide_hwif_t *); | 1159 | extern int ide_release_dma(ide_hwif_t *); |
1161 | extern void ide_setup_dma(ide_hwif_t *, unsigned long, unsigned int); | 1160 | extern void ide_setup_dma(ide_hwif_t *, unsigned long, unsigned int); |
1162 | 1161 | ||
1163 | void ide_dma_host_off(ide_drive_t *); | 1162 | void ide_dma_host_set(ide_drive_t *, int); |
1164 | void ide_dma_host_on(ide_drive_t *); | ||
1165 | extern int ide_dma_setup(ide_drive_t *); | 1163 | extern int ide_dma_setup(ide_drive_t *); |
1166 | extern void ide_dma_start(ide_drive_t *); | 1164 | extern void ide_dma_start(ide_drive_t *); |
1167 | extern int __ide_dma_end(ide_drive_t *); | 1165 | extern int __ide_dma_end(ide_drive_t *); |