libata-core: fix some docs & typos
PATCH 1/1 libata-core: fix some docs & typos
From: Randy Dunlap <[email protected]>
Fix some kernel-doc.
Fix typo/spello.
Put some comments in <= 80 columns.
Change one DPRINTK() string to be unique (was a duplicate but should not be).
Signed-off-by Randy Dunlap <[email protected]>
--- drivers/scsi/libata-core.c | 27 +++++++++++---------------- 1 files changed, 11 insertions(+), 16 deletions(-)
drivers/scsi/libata-core.c +11 -16
@@ -1398,12 +1398,11 @@ static inline u8 ata_dev_knobble(const s }/** -* ata_dev_config - Run device specific handlers and check for -* SATA->PATA bridges -* @ap: Bus -* @i: Device +* ata_dev_config - Run device-specific handlers & check for SATA->PATA bridges +* @ap: ATA port +* @i: Device index * -* LOCKING: +* LOCKING: */ void ata_dev_config (struct ata_port *ap,unsigned int i)
@@ -1711,9 +1710,9 @@ int ata_timing_compute(struct ata_deviceata_timing_quantize (t, t,T ,UT );/* -* Even in DMA/UDMA modes we still use PIO access for IDENTIFY, S.M.A.R.T -* and some other commands. We have to ensure that the DMA cycle timing is -* slower/equal than the fastest PIO timing. +* Even in DMA/UDMA modes we still use PIO access for IDENTIFY, +* S.M.A.R.T. and some other commands. We have to ensure that the +* DMA cycle timing is slower/equal than the fastest PIO timing. */ if (speed >XFER_PIO_4 ) {
@@ -1722,7 +1721,7 @@ int ata_timing_compute(struct ata_device }/* -* Lenghten active & recovery time so that cycle time is correct. +* Lengthen active & recovery time so that cycle time is correct. */ if (t->act8b + t->rec8b < t->cyc8b) {
@@ -1890,7 +1889,6 @@ err_out:* or a timeout occurs. * * LOCKING: None. -* */ static unsigned int ata_busy_sleep (struct ata_port *ap,
@@ -1984,7 +1982,6 @@ static void ata_bus_post_reset(struct at* LOCKING: * PCI/etc. bus probe sem. * Obtains host_set lock. -* */ static unsigned int ata_bus_edd (struct ata_port *ap)
@@ -2732,7 +2729,6 @@ skip_map:* * RETURNS: * Zero on success, negative on error. -* */ static int ata_sg_setup (struct ata_queued_cmd *qc)
@@ -2828,7 +2824,7 @@ void ata_poll_qc_complete(struct ata_que }/** -* ata_pio_poll - +* ata_pio_poll - poll using PIO, depending on current state * @ap: the target ata_port * * LOCKING:
@@ -2935,7 +2931,7 @@ static int ata_pio_complete (struct ata_/** -* swap_buf_le16 - swap halves of 16-words in place +* swap_buf_le16 - swap halves of 16-bit words in place * @buf: Buffer to swap * @buf_words: Number of 16-bit words in buffer. *
@@ -3119,7 +3115,6 @@ static void ata_pio_sector(struct ata_qu* * LOCKING: * Inherited from caller. -* */ static void __atapi_pio_bytes (struct ata_queued_cmd *qc,unsigned int bytes)
@@ -4545,7 +4540,7 @@ int ata_device_add(const struct ata_prob }/* probes are done, now scan each port's disk(s) */ -DPRINTK ("probe begin\n" ); +DPRINTK ("probe-scan begin\n" );for (i =0 ; i < count; i++) {struct ata_port *ap = host_set->ports[i];
---