diff options
author | Jeff Garzik <jeff@garzik.org> | 2006-08-10 03:59:03 -0400 |
---|---|---|
committer | Tejun Heo <htejun@gmail.com> | 2006-08-10 03:59:03 -0400 |
commit | 996139f1ce50c56c5e66f86b6aba17ff5ea00b86 (patch) | |
tree | 286ec88b9323c01f05b5505a19c3cee33b26680f /drivers | |
parent | 4608c1608501cf2b0dc4478c9b6c3902db58408a (diff) |
[PATCH] [libata] some function renaming
s/ata_host_add/ata_port_add/
s/ata_host_init/ata_port_init/
libata naming got stuck in the middle of a Great Renaming:
ata_host -> ata_port
ata_host_set -> ata_host
To eliminate confusion, let's just give up for now, and simply ensure
that things are internally consistent.
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Signed-off-by: Tejun Heo <htejun@gmail.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/scsi/libata-core.c | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/drivers/scsi/libata-core.c b/drivers/scsi/libata-core.c index eb9de073639c..3aa477a3302f 100644 --- a/drivers/scsi/libata-core.c +++ b/drivers/scsi/libata-core.c | |||
@@ -5309,7 +5309,7 @@ static void ata_port_init_shost(struct ata_port *ap, struct Scsi_Host *shost) | |||
5309 | } | 5309 | } |
5310 | 5310 | ||
5311 | /** | 5311 | /** |
5312 | * ata_host_add - Attach low-level ATA driver to system | 5312 | * ata_port_add - Attach low-level ATA driver to system |
5313 | * @ent: Information provided by low-level driver | 5313 | * @ent: Information provided by low-level driver |
5314 | * @host_set: Collections of ports to which we add | 5314 | * @host_set: Collections of ports to which we add |
5315 | * @port_no: Port number associated with this host | 5315 | * @port_no: Port number associated with this host |
@@ -5322,12 +5322,11 @@ static void ata_port_init_shost(struct ata_port *ap, struct Scsi_Host *shost) | |||
5322 | * RETURNS: | 5322 | * RETURNS: |
5323 | * New ata_port on success, for NULL on error. | 5323 | * New ata_port on success, for NULL on error. |
5324 | */ | 5324 | */ |
5325 | 5325 | static struct ata_port * ata_port_add(const struct ata_probe_ent *ent, | |
5326 | static struct ata_port * ata_host_add(const struct ata_probe_ent *ent, | ||
5327 | struct ata_host_set *host_set, | 5326 | struct ata_host_set *host_set, |
5328 | unsigned int port_no) | 5327 | unsigned int port_no) |
5329 | { | 5328 | { |
5330 | struct Scsi_Host *host; | 5329 | struct Scsi_Host *shost; |
5331 | struct ata_port *ap; | 5330 | struct ata_port *ap; |
5332 | int rc; | 5331 | int rc; |
5333 | 5332 | ||
@@ -5340,16 +5339,16 @@ static struct ata_port * ata_host_add(const struct ata_probe_ent *ent, | |||
5340 | return NULL; | 5339 | return NULL; |
5341 | } | 5340 | } |
5342 | 5341 | ||
5343 | host = scsi_host_alloc(ent->sht, sizeof(struct ata_port)); | 5342 | shost = scsi_host_alloc(ent->sht, sizeof(struct ata_port)); |
5344 | if (!host) | 5343 | if (!shost) |
5345 | return NULL; | 5344 | return NULL; |
5346 | 5345 | ||
5347 | host->transportt = &ata_scsi_transport_template; | 5346 | shost->transportt = &ata_scsi_transport_template; |
5348 | 5347 | ||
5349 | ap = ata_shost_to_port(host); | 5348 | ap = ata_shost_to_port(shost); |
5350 | 5349 | ||
5351 | ata_port_init(ap, host_set, ent, port_no); | 5350 | ata_port_init(ap, host_set, ent, port_no); |
5352 | ata_port_init_shost(ap, host); | 5351 | ata_port_init_shost(ap, shost); |
5353 | 5352 | ||
5354 | rc = ap->ops->port_start(ap); | 5353 | rc = ap->ops->port_start(ap); |
5355 | if (rc) | 5354 | if (rc) |
@@ -5358,7 +5357,7 @@ static struct ata_port * ata_host_add(const struct ata_probe_ent *ent, | |||
5358 | return ap; | 5357 | return ap; |
5359 | 5358 | ||
5360 | err_out: | 5359 | err_out: |
5361 | scsi_host_put(host); | 5360 | scsi_host_put(shost); |
5362 | return NULL; | 5361 | return NULL; |
5363 | } | 5362 | } |
5364 | 5363 | ||
@@ -5427,7 +5426,7 @@ int ata_device_add(const struct ata_probe_ent *ent) | |||
5427 | struct ata_port *ap; | 5426 | struct ata_port *ap; |
5428 | unsigned long xfer_mode_mask; | 5427 | unsigned long xfer_mode_mask; |
5429 | 5428 | ||
5430 | ap = ata_host_add(ent, host_set, i); | 5429 | ap = ata_port_add(ent, host_set, i); |
5431 | if (!ap) | 5430 | if (!ap) |
5432 | goto err_out; | 5431 | goto err_out; |
5433 | 5432 | ||