setmode method is optional

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1674 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo 2009-03-31 22:29:58 +00:00
parent bb54876857
commit d044d4f67b

View File

@ -102,7 +102,7 @@
*
****************************************************************************/
#define SPI_SETMODE(d,m) ((d)->ops->mode(d,m))
#define SPI_SETMODE(d,m) ((d)->ops->mode ? (d)->ops->mode(d,m) : (void))
/****************************************************************************
* Name: SPI_STATUS