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'...
This commit is contained in:
parent
d793f3ae03
commit
2517b63a39
|
@ -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
|
||||
|
||||
/****************************************************************************
|
||||
|
|
Loading…
Reference in New Issue