ata: pata_amd: Remove superfluous, add missing and fix broken params
authorLee Jones <lee.jones@linaro.org>
Mon, 1 Feb 2021 14:39:26 +0000 (14:39 +0000)
committerJens Axboe <axboe@kernel.dk>
Fri, 12 Mar 2021 14:28:30 +0000 (07:28 -0700)
Fixes the following W=1 kernel build warning(s):

 drivers/ata/pata_amd.c:179: warning: Excess function parameter 'adev' description in 'amd_fifo_setup'
 drivers/ata/pata_amd.c:331: warning: Function parameter or member 'link' not described in 'nv_pre_reset'
 drivers/ata/pata_amd.c:331: warning: Function parameter or member 'deadline' not described in 'nv_pre_reset'
 drivers/ata/pata_amd.c:331: warning: expecting prototype for nv_probe_init(). Prototype was for nv_pre_reset() instead

Cc: Jens Axboe <axboe@kernel.dk>
Cc: linux-ide@vger.kernel.org
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/ata/pata_amd.c

index 987967f976cb2df2db308e3bf78812e8c7a03a40..75b830eb3c542bf561dd5800ecb144de06770119 100644 (file)
@@ -167,7 +167,6 @@ static int amd_cable_detect(struct ata_port *ap)
 /**
  *     amd_fifo_setup          -       set the PIO FIFO for ATA/ATAPI
  *     @ap: ATA interface
- *     @adev: ATA device
  *
  *     Set the PCI fifo for this device according to the devices present
  *     on the bus at this point in time. We need to turn the post write buffer
@@ -321,7 +320,8 @@ static unsigned long nv_mode_filter(struct ata_device *dev,
 
 /**
  *     nv_probe_init   -       cable detection
- *     @lin: ATA link
+ *     @link: ATA link
+ *     @deadline: deadline jiffies for the operation
  *
  *     Perform cable detection. The BIOS stores this in PCI config
  *     space for us.