drivers: Replace DEV_USED by -EBUSY
This patch replaces all occurences of the macro DEV_USED by -EBUSY at the driver level. So this patch touch the files under drivers/, include/ and samples/drivers/ when applicable. This patch is part of the effort to transition from DEV_* codes to errno.h codes. Change-Id: I21eb3ffe9bdfde98593dcf63c50a8bdcd376e49e Signed-off-by: Andre Guedes <andre.guedes@intel.com>
This commit is contained in:
parent
b3cb3a1f68
commit
afcc923172
6 changed files with 8 additions and 8 deletions
|
@ -601,7 +601,7 @@ static int spi_k64_transceive(struct device *dev,
|
|||
((sys_read32(info->regs + SPI_K64_REG_SR) & SPI_K64_SR_TFFF) == 0)) {
|
||||
|
||||
DBG("spi_k64_transceive: Tx FIFO is already full\n");
|
||||
return DEV_USED;
|
||||
return -EBUSY;
|
||||
}
|
||||
|
||||
/* Set buffers info */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue