summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Richter <ichgeh@l--putt.de>2011-06-22 23:36:49 +0200
committerStefan Richter <ichgeh@l--putt.de>2011-06-22 23:36:49 +0200
commit2517b63a39502991fc3b06c1f029aa33344c41e6 (patch)
treef586c004dca929d67061fd74504687c0d8756d9f
parentd793f3ae0395bc6bcb571dd8772c7bc25a89bb63 (diff)
Fix return value of SPI_LOCK if CONFIG_SPI_OWNBUS is set
There seems to be a contradiction between 'Returned Value: None' and the function return type 'int'...
-rw-r--r--nuttx/include/nuttx/spi.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/nuttx/include/nuttx/spi.h b/nuttx/include/nuttx/spi.h
index 9e904d5008..a991f71070 100644
--- a/nuttx/include/nuttx/spi.h
+++ b/nuttx/include/nuttx/spi.h
@@ -85,7 +85,7 @@
#ifndef CONFIG_SPI_OWNBUS
# define SPI_LOCK(d,l) (d)->ops->lock(d,l)
#else
-# define SPI_LOCK(d,l)
+# define SPI_LOCK(d,l) 0
#endif
/****************************************************************************