diff options
author | Javier Martinez Canillas <javier@osg.samsung.com> | 2016-03-10 13:01:13 -0500 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-03-11 02:23:01 -0500 |
commit | c76d9ae415f1a80489a76ea41620c3f17383b7fb (patch) | |
tree | 49e9ed382fe154d90a5140b23d2bf4b48be97acd | |
parent | 3700ce951c405f748a4767cabe6ac65727cbf767 (diff) |
spi: Fix htmldocs build error due struct spi_replaced_transfers
The kernel-doc has to be just before the structure definition but the one
for struct spi_replaced_transfers was before a structure declaration and
that confuses kernel-doc which complains with the following build error:
.//include/linux/spi/spi.h:933: error: Cannot parse struct or union!
Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | include/linux/spi/spi.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/linux/spi/spi.h b/include/linux/spi/spi.h index 3c02b4d06268..1fc33db4347f 100644 --- a/include/linux/spi/spi.h +++ b/include/linux/spi/spi.h | |||
@@ -898,6 +898,10 @@ spi_max_transfer_size(struct spi_device *spi) | |||
898 | 898 | ||
899 | /* SPI transfer replacement methods which make use of spi_res */ | 899 | /* SPI transfer replacement methods which make use of spi_res */ |
900 | 900 | ||
901 | struct spi_replaced_transfers; | ||
902 | typedef void (*spi_replaced_release_t)(struct spi_master *master, | ||
903 | struct spi_message *msg, | ||
904 | struct spi_replaced_transfers *res); | ||
901 | /** | 905 | /** |
902 | * struct spi_replaced_transfers - structure describing the spi_transfer | 906 | * struct spi_replaced_transfers - structure describing the spi_transfer |
903 | * replacements that have occurred | 907 | * replacements that have occurred |
@@ -917,10 +921,6 @@ spi_max_transfer_size(struct spi_device *spi) | |||
917 | * if some extra allocation is requested, so alignment will be the same | 921 | * if some extra allocation is requested, so alignment will be the same |
918 | * as for spi_transfers | 922 | * as for spi_transfers |
919 | */ | 923 | */ |
920 | struct spi_replaced_transfers; | ||
921 | typedef void (*spi_replaced_release_t)(struct spi_master *master, | ||
922 | struct spi_message *msg, | ||
923 | struct spi_replaced_transfers *res); | ||
924 | struct spi_replaced_transfers { | 924 | struct spi_replaced_transfers { |
925 | spi_replaced_release_t release; | 925 | spi_replaced_release_t release; |
926 | void *extradata; | 926 | void *extradata; |