[PATCH 13/21] ide: siimage: Fix some incorrectly documented functions/params

From: Lee Jones
Date: Wed Jun 02 2021 - 06:18:47 EST


Fixes the following W=1 kernel build warning(s):

drivers/ide/siimage.c:115: warning: Function parameter or member 'drive' not described in 'siimage_seldev'
drivers/ide/siimage.c:115: warning: Excess function parameter 'hwif' description in 'siimage_seldev'
drivers/ide/siimage.c:196: warning: expecting prototype for sil_udma_filter(). Prototype was for sil_pata_udma_filter() instead

Cc: "David S. Miller" <davem@xxxxxxxxxxxxx>
Cc: Andre Hedrick <andre@xxxxxxxxxxxxx>
Cc: linux-ide@xxxxxxxxxxxxxxx
Signed-off-by: Lee Jones <lee.jones@xxxxxxxxxx>
---
drivers/ide/siimage.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/ide/siimage.c b/drivers/ide/siimage.c
index c190dc6dfb50a..64fa6b253a824 100644
--- a/drivers/ide/siimage.c
+++ b/drivers/ide/siimage.c
@@ -103,7 +103,7 @@ static unsigned long siimage_selreg(ide_hwif_t *hwif, int r)

/**
* siimage_seldev - return register base
- * @hwif: interface
+ * @drive: interface
* @r: config offset
*
* Turn a config register offset into the right address in either
@@ -183,7 +183,7 @@ static void sil_iowrite32(struct pci_dev *dev, u32 val, unsigned long addr)
}

/**
- * sil_udma_filter - compute UDMA mask
+ * sil_pata_udma_filter - compute UDMA mask
* @drive: IDE device
*
* Compute the available UDMA speeds for the device on the interface.
--
2.31.1