Skip to content

Commit d649781

Browse files
msperlbroonie
authored andcommitted
spi: docbook: fix parsing error
Fixes docbook parsing error because documentation is not directly followed by the structure, but typedef used in structure. Reordering should solve that issue. Signed-off-by: Martin Sperl <kernel@martin.sperl.org> Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent d780c37 commit d649781

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

include/linux/spi/spi.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -586,6 +586,10 @@ extern struct spi_master *spi_busnum_to_master(u16 busnum);
586586
* SPI resource management while processing a SPI message
587587
*/
588588

589+
typedef void (*spi_res_release_t)(struct spi_master *master,
590+
struct spi_message *msg,
591+
void *res);
592+
589593
/**
590594
* struct spi_res - spi resource management structure
591595
* @entry: list entry
@@ -595,9 +599,6 @@ extern struct spi_master *spi_busnum_to_master(u16 busnum);
595599
* this is based on ideas from devres, but focused on life-cycle
596600
* management during spi_message processing
597601
*/
598-
typedef void (*spi_res_release_t)(struct spi_master *master,
599-
struct spi_message *msg,
600-
void *res);
601602
struct spi_res {
602603
struct list_head entry;
603604
spi_res_release_t release;

0 commit comments

Comments
 (0)