spi_unlock_bus — unlock SPI bus
int spi_unlock_bus ( | struct spi_device * | spi); |
The caller has called spi_lock_bus to lock the bus. It calls
spi_unlock_bus to release the bus so messages for other devices
can be transferred.
If the caller did not call spi_lock_bus before, spi_unlock_bus
will return -ENOLCK.
It returns zero on success, else a negative error code: -ENOSYS: spi master driver does not implement this function -ENOLCK: cannot unlock the bus