[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20100118171427.14623.34958.sendpatchset@localhost>
Date: Mon, 18 Jan 2010 18:14:27 +0100
From: Bartlomiej Zolnierkiewicz <bzolnier@...il.com>
To: linux-ide@...r.kernel.org
Cc: Bartlomiej Zolnierkiewicz <bzolnier@...il.com>,
linux-kernel@...r.kernel.org
Subject: [PATCH 05/64] pata_atiixp: remove superfluous wrapper function
From: Bartlomiej Zolnierkiewicz <bzolnier@...il.com>
Subject: [PATCH] pata_atiixp: remove superfluous wrapper function
Fix documentation for ->set_[pio,dma]mode methods while at it.
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@...il.com>
---
drivers/ata/pata_atiixp.c | 29 +++++++----------------------
1 file changed, 7 insertions(+), 22 deletions(-)
Index: b/drivers/ata/pata_atiixp.c
===================================================================
--- a/drivers/ata/pata_atiixp.c
+++ b/drivers/ata/pata_atiixp.c
@@ -72,22 +72,22 @@ static int atiixp_prereset(struct ata_li
}
/**
- * atiixp_set_pio_timing - set initial PIO mode data
+ * atiixp_set_piomode - set PIO mode data
* @ap: ATA interface
* @adev: ATA device
*
- * Called by both the pio and dma setup functions to set the controller
- * timings for PIO transfers. We must load both the mode number and
- * timing values into the controller.
+ * Called to set the controller timings for PIO transfers. We must
+ * load both the mode number and timing values into the controller.
*/
-static void atiixp_set_pio_timing(struct ata_port *ap, struct ata_device *adev, int pio)
+static void atiixp_set_piomode(struct ata_port *ap, struct ata_device *adev)
{
static u8 pio_timings[5] = { 0x5D, 0x47, 0x34, 0x22, 0x20 };
struct pci_dev *pdev = to_pci_dev(ap->host->dev);
int dn = 2 * ap->port_no + adev->devno;
int timing_shift = (16 * ap->port_no) + 8 * (adev->devno ^ 1);
+ int pio = adev->pio_mode - XFER_PIO_0;
u32 pio_timing_data;
u16 pio_mode_data;
@@ -103,26 +103,11 @@ static void atiixp_set_pio_timing(struct
}
/**
- * atiixp_set_piomode - set initial PIO mode data
- * @ap: ATA interface
- * @adev: ATA device
- *
- * Called to do the PIO mode setup. We use a shared helper for this
- * as the DMA setup must also adjust the PIO timing information.
- */
-
-static void atiixp_set_piomode(struct ata_port *ap, struct ata_device *adev)
-{
- atiixp_set_pio_timing(ap, adev, adev->pio_mode - XFER_PIO_0);
-}
-
-/**
- * atiixp_set_dmamode - set initial DMA mode data
+ * atiixp_set_dmamode - set DMA mode data
* @ap: ATA interface
* @adev: ATA device
*
- * Called to do the DMA mode setup. We use timing tables for most
- * modes but must tune an appropriate PIO mode to match.
+ * Called to do the DMA mode setup.
*/
static void atiixp_set_dmamode(struct ata_port *ap, struct ata_device *adev)
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists