diff options
author | Javier Martinez Canillas <javier@osg.samsung.com> | 2015-10-22 12:59:22 -0400 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-10-23 12:28:35 -0400 |
commit | a1fdeaa71c95e5c6eba40245f84f762202dc69bb (patch) | |
tree | e7d4d04896cc2224ce0867a3f6b3617874bfabc8 | |
parent | 0dc9631221c95cc5ba31c115bf21c9b156aab253 (diff) |
spi: fix kernel-doc warnings about missing return desc in spi.h
When building docs with make htmldocs, warnings about not having
a description for the return value are reported, i.e:
warning: No description found for return value of 'spi_write'
Fix these by following the kernel-doc conventions explained in
Documentation/kernel-doc-nano-HOWTO.txt.
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 | 34 |
1 files changed, 20 insertions, 14 deletions
diff --git a/include/linux/spi/spi.h b/include/linux/spi/spi.h index e1f21778cb54..635bff60eda5 100644 --- a/include/linux/spi/spi.h +++ b/include/linux/spi/spi.h | |||
@@ -847,8 +847,10 @@ extern int spi_bus_unlock(struct spi_master *master); | |||
847 | * @len: data buffer size | 847 | * @len: data buffer size |
848 | * Context: can sleep | 848 | * Context: can sleep |
849 | * | 849 | * |
850 | * This writes the buffer and returns zero or a negative error code. | 850 | * This function writes the buffer @buf. |
851 | * Callable only from contexts that can sleep. | 851 | * Callable only from contexts that can sleep. |
852 | * | ||
853 | * Return: zero on success, else a negative error code. | ||
852 | */ | 854 | */ |
853 | static inline int | 855 | static inline int |
854 | spi_write(struct spi_device *spi, const void *buf, size_t len) | 856 | spi_write(struct spi_device *spi, const void *buf, size_t len) |
@@ -871,8 +873,10 @@ spi_write(struct spi_device *spi, const void *buf, size_t len) | |||
871 | * @len: data buffer size | 873 | * @len: data buffer size |
872 | * Context: can sleep | 874 | * Context: can sleep |
873 | * | 875 | * |
874 | * This reads the buffer and returns zero or a negative error code. | 876 | * This function reads the buffer @buf. |
875 | * Callable only from contexts that can sleep. | 877 | * Callable only from contexts that can sleep. |
878 | * | ||
879 | * Return: zero on success, else a negative error code. | ||
876 | */ | 880 | */ |
877 | static inline int | 881 | static inline int |
878 | spi_read(struct spi_device *spi, void *buf, size_t len) | 882 | spi_read(struct spi_device *spi, void *buf, size_t len) |
@@ -899,7 +903,7 @@ spi_read(struct spi_device *spi, void *buf, size_t len) | |||
899 | * | 903 | * |
900 | * For more specific semantics see spi_sync(). | 904 | * For more specific semantics see spi_sync(). |
901 | * | 905 | * |
902 | * It returns zero on success, else a negative error code. | 906 | * Return: Return: zero on success, else a negative error code. |
903 | */ | 907 | */ |
904 | static inline int | 908 | static inline int |
905 | spi_sync_transfer(struct spi_device *spi, struct spi_transfer *xfers, | 909 | spi_sync_transfer(struct spi_device *spi, struct spi_transfer *xfers, |
@@ -923,9 +927,10 @@ extern int spi_write_then_read(struct spi_device *spi, | |||
923 | * @cmd: command to be written before data is read back | 927 | * @cmd: command to be written before data is read back |
924 | * Context: can sleep | 928 | * Context: can sleep |
925 | * | 929 | * |
926 | * This returns the (unsigned) eight bit number returned by the | 930 | * Callable only from contexts that can sleep. |
927 | * device, or else a negative error code. Callable only from | 931 | * |
928 | * contexts that can sleep. | 932 | * Return: the (unsigned) eight bit number returned by the |
933 | * device, or else a negative error code. | ||
929 | */ | 934 | */ |
930 | static inline ssize_t spi_w8r8(struct spi_device *spi, u8 cmd) | 935 | static inline ssize_t spi_w8r8(struct spi_device *spi, u8 cmd) |
931 | { | 936 | { |
@@ -944,12 +949,13 @@ static inline ssize_t spi_w8r8(struct spi_device *spi, u8 cmd) | |||
944 | * @cmd: command to be written before data is read back | 949 | * @cmd: command to be written before data is read back |
945 | * Context: can sleep | 950 | * Context: can sleep |
946 | * | 951 | * |
947 | * This returns the (unsigned) sixteen bit number returned by the | ||
948 | * device, or else a negative error code. Callable only from | ||
949 | * contexts that can sleep. | ||
950 | * | ||
951 | * The number is returned in wire-order, which is at least sometimes | 952 | * The number is returned in wire-order, which is at least sometimes |
952 | * big-endian. | 953 | * big-endian. |
954 | * | ||
955 | * Callable only from contexts that can sleep. | ||
956 | * | ||
957 | * Return: the (unsigned) sixteen bit number returned by the | ||
958 | * device, or else a negative error code. | ||
953 | */ | 959 | */ |
954 | static inline ssize_t spi_w8r16(struct spi_device *spi, u8 cmd) | 960 | static inline ssize_t spi_w8r16(struct spi_device *spi, u8 cmd) |
955 | { | 961 | { |
@@ -968,13 +974,13 @@ static inline ssize_t spi_w8r16(struct spi_device *spi, u8 cmd) | |||
968 | * @cmd: command to be written before data is read back | 974 | * @cmd: command to be written before data is read back |
969 | * Context: can sleep | 975 | * Context: can sleep |
970 | * | 976 | * |
971 | * This returns the (unsigned) sixteen bit number returned by the device in cpu | ||
972 | * endianness, or else a negative error code. Callable only from contexts that | ||
973 | * can sleep. | ||
974 | * | ||
975 | * This function is similar to spi_w8r16, with the exception that it will | 977 | * This function is similar to spi_w8r16, with the exception that it will |
976 | * convert the read 16 bit data word from big-endian to native endianness. | 978 | * convert the read 16 bit data word from big-endian to native endianness. |
977 | * | 979 | * |
980 | * Callable only from contexts that can sleep. | ||
981 | * | ||
982 | * Return: the (unsigned) sixteen bit number returned by the device in cpu | ||
983 | * endianness, or else a negative error code. | ||
978 | */ | 984 | */ |
979 | static inline ssize_t spi_w8r16be(struct spi_device *spi, u8 cmd) | 985 | static inline ssize_t spi_w8r16be(struct spi_device *spi, u8 cmd) |
980 | 986 | ||