aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/spi
diff options
context:
space:
mode:
authorAndrew Morton <akpm@linux-foundation.org>2015-04-16 15:49:29 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2015-04-17 09:04:12 -0400
commit07eec628ffcea711e14644e14d2c83b4150ba1b7 (patch)
tree973c2a09fbe1cb764a2aa2ba195f8cdf87bb115b /Documentation/spi
parent94f919225890a1adb3d44bf5b31ff4cb21d8ee7e (diff)
Documentation/spi/spidev_test.c: fix warning
Documentation/spi/spidev_test.c:83:5: warning: no previous prototype for 'unespcape' [-Wmissing-prototypes] fix spelling too. Acked-by: Mark Brown <broonie@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'Documentation/spi')
-rw-r--r--Documentation/spi/spidev_test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Documentation/spi/spidev_test.c b/Documentation/spi/spidev_test.c
index 94f574b0fdb2..135b3f592b83 100644
--- a/Documentation/spi/spidev_test.c
+++ b/Documentation/spi/spidev_test.c
@@ -80,7 +80,7 @@ static void hex_dump(const void *src, size_t length, size_t line_size, char *pre
80 * Unescape - process hexadecimal escape character 80 * Unescape - process hexadecimal escape character
81 * converts shell input "\x23" -> 0x23 81 * converts shell input "\x23" -> 0x23
82 */ 82 */
83int unespcape(char *_dst, char *_src, size_t len) 83static int unescape(char *_dst, char *_src, size_t len)
84{ 84{
85 int ret = 0; 85 int ret = 0;
86 char *src = _src; 86 char *src = _src;
@@ -304,7 +304,7 @@ int main(int argc, char *argv[])
304 size = strlen(input_tx+1); 304 size = strlen(input_tx+1);
305 tx = malloc(size); 305 tx = malloc(size);
306 rx = malloc(size); 306 rx = malloc(size);
307 size = unespcape((char *)tx, input_tx, size); 307 size = unescape((char *)tx, input_tx, size);
308 transfer(fd, tx, rx, size); 308 transfer(fd, tx, rx, size);
309 free(rx); 309 free(rx);
310 free(tx); 310 free(tx);