From: Hyeongsik Min Date: Thu, 8 Jun 2017 07:38:07 +0000 (+0900) Subject: Replace error code from ENODEV with ENXIO X-Git-Tag: submit/tizen/20170613.105843~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6e53073c2bed4bf3b8af764cb46b093fd5a55464;p=platform%2Fcore%2Fapi%2Fperipheral-io.git Replace error code from ENODEV with ENXIO Change error code ENODEV to ENXIO for the case of no such device, because ENODEV is not defined in tizen_error.h and is also suitable for the case. Change-Id: I5e0f6d17bc9af720fd6d15862aaa2fd8da259ad1 Signed-off-by: Hyeongsik Min --- diff --git a/include/peripheral_io.h b/include/peripheral_io.h index 5629ae3..baa48e1 100644 --- a/include/peripheral_io.h +++ b/include/peripheral_io.h @@ -36,6 +36,7 @@ extern "C" { typedef enum { PERIPHERAL_ERROR_NONE = TIZEN_ERROR_NONE, /**< Successful */ PERIPHERAL_ERROR_IO_ERROR = TIZEN_ERROR_IO_ERROR, /**< I/O error */ + PERIPHERAL_ERROR_NO_DEVICE = TIZEN_ERROR_NO_SUCH_DEVICE, /**< No such device */ PERIPHERAL_ERROR_OUT_OF_MEMORY = TIZEN_ERROR_OUT_OF_MEMORY, /**< Out of memory */ PERIPHERAL_ERROR_PERMISSION_DENIED = TIZEN_ERROR_PERMISSION_DENIED, /**< Permission denied */ PERIPHERAL_ERROR_RESOURCE_BUSY = TIZEN_ERROR_RESOURCE_BUSY, /**< Device or resource busy */ @@ -45,7 +46,6 @@ typedef enum { PERIPHERAL_ERROR_TIMED_OUT = TIZEN_ERROR_TIMED_OUT, /**< Time out */ PERIPHERAL_ERROR_NOT_SUPPORTED = TIZEN_ERROR_NOT_SUPPORTED, /**< Not supported */ PERIPHERAL_ERROR_UNKNOWN = TIZEN_ERROR_UNKNOWN, /**< Unknown error */ - PERIPHERAL_ERROR_NO_DEVICE = -ENODEV, /**< No such device */ } peripheral_error_e; /**