device: Deprecate DEV_* error codes

This patch adds a comment to DEV_* codes definition to inform that these
codes are deprecated and we should use codes from errno.h instead.

Change-Id: Ia01b83035db5526b2da56ad4a06b2ebab85b0d55
Signed-off-by: Andre Guedes <andre.guedes@intel.com>
This commit is contained in:
Andre Guedes 2016-03-11 19:25:08 -03:00 committed by Gerrit Code Review
commit 0cf74d1755

View file

@ -149,7 +149,11 @@ extern "C" {
*/
#define DEVICE_DECLARE(name) extern struct device DEVICE_NAME_GET(name)
/* Common Error Codes devices can provide */
/*
* DEPRECATED.
*
* DEV_* error codes are deprecated. Use error codes from errno.h instead.
*/
#define DEV_OK 0 /* No error */
#define DEV_FAIL (-EIO) /* General operation failure */
#define DEV_INVALID_OP (-ENOTSUP) /* Invalid operation */