Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ata: pata_triflex: Repair some misnamed functions and fix some param descriptions

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

drivers/ata/pata_triflex.c:143: warning: expecting prototype for triflex_dma_start(). Prototype was for triflex_bmdma_start() instead
drivers/ata/pata_triflex.c:159: warning: Function parameter or member 'qc' not described in 'triflex_bmdma_stop'
drivers/ata/pata_triflex.c:159: warning: expecting prototype for triflex_dma_stop(). Prototype was for triflex_bmdma_stop() instead

Cc: Jens Axboe <axboe@kernel.dk>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: Torben Mathiasen <torben.mathiasen@hp.com>
Cc: linux-ide@vger.kernel.org
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Link: https://lore.kernel.org/r/20210318085150.3131936-5-lee.jones@linaro.org
Signed-off-by: Jens Axboe <axboe@kernel.dk>

authored by

Lee Jones and committed by
Jens Axboe
2ee628f3 8927c41e

+3 -4
+3 -4
drivers/ata/pata_triflex.c
··· 129 129 } 130 130 131 131 /** 132 - * triflex_dma_start - DMA start callback 132 + * triflex_bmdma_start - DMA start callback 133 133 * @qc: Command in progress 134 134 * 135 135 * Usually drivers set the DMA timing at the point the set_dmamode call ··· 146 146 } 147 147 148 148 /** 149 - * triflex_dma_stop - DMA stop callback 150 - * @ap: ATA interface 151 - * @adev: ATA device 149 + * triflex_bmdma_stop - DMA stop callback 150 + * @qc: ATA command 152 151 * 153 152 * We loaded new timings in dma_start, as a result we need to restore 154 153 * the PIO timings in dma_stop so that the next command issue gets the