drivers: Replace DEV_INVALID_OP by -ENOTSUP

This patch replaces all occurences of the macro DEV_INVALID_OP by
-ENOTSUP 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: I46aec3c65963018c479b01602e4a3eec8650eaff
Signed-off-by: Andre Guedes <andre.guedes@intel.com>
This commit is contained in:
Andre Guedes 2016-03-09 14:54:42 -03:00 committed by Anas Nashif
commit 245e140da6
25 changed files with 116 additions and 88 deletions

View file

@ -489,7 +489,7 @@ static int spi_k64_configure(struct device *dev, struct spi_config *config)
frame_sz = SPI_WORD_SIZE_GET(flags);
if (frame_sz > SPI_K64_WORD_SIZE_MAX) {
return DEV_INVALID_OP;
return -ENOTSUP;
}
spi_data->frame_sz = frame_sz;
@ -499,7 +499,7 @@ static int spi_k64_configure(struct device *dev, struct spi_config *config)
/* Set baud rate and signal timing parameters (delays) */
if (spi_k64_set_baud_rate(config->max_sys_freq, &ctar) == 0) {
return DEV_INVALID_OP;
return -ENOTSUP;
}
/*
@ -513,7 +513,7 @@ static int spi_k64_configure(struct device *dev, struct spi_config *config)
if (spi_k64_set_delay(DELAY_AFTER_SCK,
(NSEC_PER_SEC / 2) / config->max_sys_freq,
&ctar) == 0) {
return DEV_INVALID_OP;
return -ENOTSUP;
}