drivers: Replace DEV_NOT_CONFIG by -EPERM
This patch replaces all occurences of the macro DEV_NOT_CONFIG by -EPERM at the driver level. This patch is part of the effort to transition from DEV_* codes to errno.h codes. Change-Id: I3054c8aa76319a58a2eec089b8a72bf301c85391 Signed-off-by: Andre Guedes <andre.guedes@intel.com>
This commit is contained in:
parent
aca7cb1efd
commit
136d171588
10 changed files with 20 additions and 13 deletions
|
@ -13,6 +13,9 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <errno.h>
|
||||
|
||||
#include <nanokernel.h>
|
||||
#include <arch/cpu.h>
|
||||
|
||||
|
@ -285,7 +288,7 @@ int glcd_initialize(struct device *port)
|
|||
CONFIG_GROVE_LCD_RGB_I2C_MASTER_DEV_NAME);
|
||||
|
||||
if (!dev->i2c) {
|
||||
return DEV_NOT_CONFIG;
|
||||
return -EPERM;
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue