Skip to contentSkip to conversation

spi.h: missing kernel-doc notation, please fix

DISCUSSION Applied Randy Dunlap 3 participants 4 messages Aug 15, 2010 – Aug 16, 2010 SPI

lore
Share & tools
lore
#0 lore raw

Hi Ernst,

This patch in mainline:

commit cf32b71e981ca63e8f349d8585ca2a3583b556e0

Author: Ernst Schwab <[email protected]>
Date:   Mon Jun 28 17:49:29 2010 -0700

spi/mmc_spi: SPI bus locking API, using mutex

adds some struct fields but does not add kernel-doc notation for them. Please add that missing struct documentation.

Warning(include/linux/spi/spi.h:304): No description found for parameter 'bus_lock_spinlock' Warning(include/linux/spi/spi.h:304): No description found for parameter 'bus_lock_mutex' Warning(include/linux/spi/spi.h:304): No description found for parameter 'bus_lock_flag'

thanks,
---
~Randy
*** Remember to use Documentation/SubmitChecklist when testing your code ***

------------------------------------------------------------------------------
This SF.net email is sponsored by

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev

#1 lore raw

Added comments in kernel-doc notation for previously added struct fields.

---

Quoted 10 lines · On Sun, 15 Aug 2010 10:31:56 -0700 Randy Dunlap…

This patch in mainline:

commit cf32b71e981ca63e8f349d8585ca2a3583b556e0

Author: Ernst Schwab <[email protected]>
Date:   Mon Jun 28 17:49:29 2010 -0700

spi/mmc_spi: SPI bus locking API, using mutex

adds some struct fields but does not add kernel-doc notation for them. Please add that missing struct documentation.

include/linux/spi/spi.h +3 -0
diff a/include/linux/spi/spi.h b/include/linux/spi/spi.h
@@ -213,6 +213,9 @@ static inline void spi_unregister_driver
  * @dma_alignment: SPI controller constraint on DMA buffers alignment.
  * @mode_bits: flags understood by this controller driver
  * @flags: other constraints relevant to this driver
+ * @bus_lock_spinlock: spinlock for SPI bus locking 
+ * @bus_lock_mutex: mutex for SPI bus locking 
+ * @bus_lock_flag: indicates that the SPI bus is locked for exclusive use
  * @setup: updates the device mode and clocking records used by a
  *	device's SPI controller; protocol code may call this.  This
  *	must fail if an unrecognized or unsupported mode is requested.

------------------------------------------------------------------------------
This SF.net email is sponsored by

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev

author Acked-by
#2 lore raw
Quoted 3 lines · On Mon, 16 Aug 2010 15:10:11 +0200 Ernst Schwab wrote:

Added comments in kernel-doc notation for previously added struct fields.

Thanks.

Quoted 19 lines

---

Quoted 10 lines · On Sun, 15 Aug 2010 10:31:56 -0700 Randy Dunlap <[email protected]> wrote:

This patch in mainline:

commit cf32b71e981ca63e8f349d8585ca2a3583b556e0

Author: Ernst Schwab <[email protected]>
Date:   Mon Jun 28 17:49:29 2010 -0700

spi/mmc_spi: SPI bus locking API, using mutex

adds some struct fields but does not add kernel-doc notation for them. Please add that missing struct documentation.

diff a/include/linux/spi/spi.h b/include/linux/spi/spi.h

include/linux/spi/spi.h static inline void spi_unregister_driver · line 221

Quoted 9 lines
include/linux/spi/spi.h +3 -0
@@ -213,6 +213,9 @@ static inline void spi_unregister_driver
  * @dma_alignment: SPI controller constraint on DMA buffers alignment.
  * @mode_bits: flags understood by this controller driver
  * @flags: other constraints relevant to this driver
+ * @bus_lock_spinlock: spinlock for SPI bus locking 
+ * @bus_lock_mutex: mutex for SPI bus locking 
+ * @bus_lock_flag: indicates that the SPI bus is locked for exclusive use
  * @setup: updates the device mode and clocking records used by a
  *	device's SPI controller; protocol code may call this.  This
  *	must fail if an unrecognized or unsupported mode is requested.

---
~Randy
*** Remember to use Documentation/SubmitChecklist when testing your code ***

Applied
#3 lore raw
In reply to Ernst Schwab
Quoted 3 lines · Ernst Schwab

Added comments in kernel-doc notation for previously added struct fields.

Applied, thanks.

Quoted 28 lines

---

Quoted 10 lines · On Sun, 15 Aug 2010 10:31:56 -0700 Randy Dunlap <[email protected]> wrote:

This patch in mainline:

commit cf32b71e981ca63e8f349d8585ca2a3583b556e0

Author: Ernst Schwab <[email protected]>
Date:   Mon Jun 28 17:49:29 2010 -0700

spi/mmc_spi: SPI bus locking API, using mutex

adds some struct fields but does not add kernel-doc notation for them. Please add that missing struct documentation.

diff a/include/linux/spi/spi.h b/include/linux/spi/spi.h

include/linux/spi/spi.h +3 -0
@@ -213,6 +213,9 @@ static inline void spi_unregister_driver
  * @dma_alignment: SPI controller constraint on DMA buffers alignment.
  * @mode_bits: flags understood by this controller driver
  * @flags: other constraints relevant to this driver
+ * @bus_lock_spinlock: spinlock for SPI bus locking 
+ * @bus_lock_mutex: mutex for SPI bus locking 
+ * @bus_lock_flag: indicates that the SPI bus is locked for exclusive use
  * @setup: updates the device mode and clocking records used by a
  *	device's SPI controller; protocol code may call this.  This
  *	must fail if an unrecognized or unsupported mode is requested.