diff options
author | Martin Sperl <kernel@martin.sperl.org> | 2016-02-18 10:53:10 -0500 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-02-18 11:59:53 -0500 |
commit | d6497816836da321a46c0e8575c4fa3d0c672bda (patch) | |
tree | 50a395bfc235e93d5dd67eb74c861e612c30a290 | |
parent | d780c3711d9df9bacd56b71cf23443b895a331ca (diff) |
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>
-rw-r--r-- | include/linux/spi/spi.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/include/linux/spi/spi.h b/include/linux/spi/spi.h index 38204b584dc5..5396ee5fc51f 100644 --- a/include/linux/spi/spi.h +++ b/include/linux/spi/spi.h | |||
@@ -586,6 +586,10 @@ extern struct spi_master *spi_busnum_to_master(u16 busnum); | |||
586 | * SPI resource management while processing a SPI message | 586 | * SPI resource management while processing a SPI message |
587 | */ | 587 | */ |
588 | 588 | ||
589 | typedef void (*spi_res_release_t)(struct spi_master *master, | ||
590 | struct spi_message *msg, | ||
591 | void *res); | ||
592 | |||
589 | /** | 593 | /** |
590 | * struct spi_res - spi resource management structure | 594 | * struct spi_res - spi resource management structure |
591 | * @entry: list entry | 595 | * @entry: list entry |
@@ -595,9 +599,6 @@ extern struct spi_master *spi_busnum_to_master(u16 busnum); | |||
595 | * this is based on ideas from devres, but focused on life-cycle | 599 | * this is based on ideas from devres, but focused on life-cycle |
596 | * management during spi_message processing | 600 | * management during spi_message processing |
597 | */ | 601 | */ |
598 | typedef void (*spi_res_release_t)(struct spi_master *master, | ||
599 | struct spi_message *msg, | ||
600 | void *res); | ||
601 | struct spi_res { | 602 | struct spi_res { |
602 | struct list_head entry; | 603 | struct list_head entry; |
603 | spi_res_release_t release; | 604 | spi_res_release_t release; |