]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
spi: spi-mem: Add missing kdoc argument
authorMiquel Raynal <miquel.raynal@bootlin.com>
Mon, 4 Aug 2025 09:50:13 +0000 (11:50 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 4 Aug 2025 19:04:53 +0000 (20:04 +0100)
The "*mem" pointer has been added without description, describe it in
the kdoc comment in order to fix the following W=1 warning:

Warning: drivers/spi/spi-mem.c:594 function parameter 'mem' not
described in 'spi_mem_calc_op_duration'

Fixes: a11a51896572 ("spi: spi-mem: Take into account the actual maximum frequency")
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202507310409.fnuQ21qb-lkp@intel.com/
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://patch.msgid.link/20250804095013.409700-1-miquel.raynal@bootlin.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-mem.c

index 5db0639d3b01596b6f2f2df4b914422316eb9a3f..dfa8ab1ec80f0800c1b95797a18f619bd5211902 100644 (file)
@@ -577,6 +577,7 @@ EXPORT_SYMBOL_GPL(spi_mem_adjust_op_freq);
  * spi_mem_calc_op_duration() - Derives the theoretical length (in ns) of an
  *                             operation. This helps finding the best variant
  *                             among a list of possible choices.
+ * @mem: the SPI memory
  * @op: the operation to benchmark
  *
  * Some chips have per-op frequency limitations, PCBs usually have their own