Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Andrew Morton and committed by
Linus Torvalds
07eec628 94f91922

+2 -2
+2 -2
Documentation/spi/spidev_test.c
··· 80 80 * Unescape - process hexadecimal escape character 81 81 * converts shell input "\x23" -> 0x23 82 82 */ 83 - int unespcape(char *_dst, char *_src, size_t len) 83 + static int unescape(char *_dst, char *_src, size_t len) 84 84 { 85 85 int ret = 0; 86 86 char *src = _src; ··· 304 304 size = strlen(input_tx+1); 305 305 tx = malloc(size); 306 306 rx = malloc(size); 307 - size = unespcape((char *)tx, input_tx, size); 307 + size = unescape((char *)tx, input_tx, size); 308 308 transfer(fd, tx, rx, size); 309 309 free(rx); 310 310 free(tx);