aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/ide-iops.c
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-04-28 17:44:40 -0400
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-04-28 17:44:40 -0400
commit94cd5b62ff9bb07ef065333eb97438f115a75890 (patch)
treec09f78987100b745ee5bb67df953469c0d24e618 /drivers/ide/ide-iops.c
parentd309e0bb8e5f29692f10790f3e966f05bbfc9355 (diff)
ide: add ->tf_load and ->tf_read methods
* Add ->tf_load and ->tf_read methods to ide_hwif_t and set the default methods in default_hwif_transport(). * Use ->tf_{load,read} instead o calling ide_tf_{load,read}() directly. * Make ide_tf_{load,read}() static. There should be no functional changes caused by this patch. Acked-by: Sergei Shtylyov <sshtylyov@ru.mvista.com> Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide/ide-iops.c')
-rw-r--r--drivers/ide/ide-iops.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/ide/ide-iops.c b/drivers/ide/ide-iops.c
index ac9e063bcf93..65275454a209 100644
--- a/drivers/ide/ide-iops.c
+++ b/drivers/ide/ide-iops.c
@@ -127,7 +127,7 @@ void SELECT_MASK (ide_drive_t *drive, int mask)
127 port_ops->maskproc(drive, mask); 127 port_ops->maskproc(drive, mask);
128} 128}
129 129
130void ide_tf_load(ide_drive_t *drive, ide_task_t *task) 130static void ide_tf_load(ide_drive_t *drive, ide_task_t *task)
131{ 131{
132 ide_hwif_t *hwif = drive->hwif; 132 ide_hwif_t *hwif = drive->hwif;
133 struct ide_io_ports *io_ports = &hwif->io_ports; 133 struct ide_io_ports *io_ports = &hwif->io_ports;
@@ -172,7 +172,7 @@ void ide_tf_load(ide_drive_t *drive, ide_task_t *task)
172 io_ports->device_addr); 172 io_ports->device_addr);
173} 173}
174 174
175void ide_tf_read(ide_drive_t *drive, ide_task_t *task) 175static void ide_tf_read(ide_drive_t *drive, ide_task_t *task)
176{ 176{
177 ide_hwif_t *hwif = drive->hwif; 177 ide_hwif_t *hwif = drive->hwif;
178 struct ide_io_ports *io_ports = &hwif->io_ports; 178 struct ide_io_ports *io_ports = &hwif->io_ports;
@@ -323,6 +323,9 @@ static void ata_output_data(ide_drive_t *drive, struct request *rq,
323 323
324void default_hwif_transport(ide_hwif_t *hwif) 324void default_hwif_transport(ide_hwif_t *hwif)
325{ 325{
326 hwif->tf_load = ide_tf_load;
327 hwif->tf_read = ide_tf_read;
328
326 hwif->input_data = ata_input_data; 329 hwif->input_data = ata_input_data;
327 hwif->output_data = ata_output_data; 330 hwif->output_data = ata_output_data;
328} 331}