From 186dc286cb813c25b9ec2e6b0828d278f82e43a4 Mon Sep 17 00:00:00 2001 From: "kibak.yoon" Date: Tue, 12 Sep 2017 11:08:55 +0900 Subject: [PATCH] sensor: capi: fix coding rule violations Change-Id: Iace7015137fbdd7d6a30f4dae114420f807ebc23 Signed-off-by: kibak.yoon --- include/sensor.h | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/include/sensor.h b/include/sensor.h index 84120c2..73fffea 100644 --- a/include/sensor.h +++ b/include/sensor.h @@ -46,8 +46,7 @@ typedef void* sensor_h; * @brief Enumeration for errors. * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif */ -typedef enum -{ +typedef enum { SENSOR_ERROR_NONE = TIZEN_ERROR_NONE, /**< Successful */ SENSOR_ERROR_IO_ERROR = TIZEN_ERROR_IO_ERROR, /**< I/O error */ SENSOR_ERROR_INVALID_PARAMETER = TIZEN_ERROR_INVALID_PARAMETER, /**< Invalid parameter */ @@ -69,8 +68,7 @@ typedef enum * nearby objects in front of the sensor as one of the followings. * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif */ -typedef enum -{ +typedef enum { SENSOR_PROXIMITY_NEAR = 0, /**< An object is placed near the proximity sensor */ SENSOR_PROXIMITY_FAR = 5, /**< No object is placed near the proximity sensor */ } sensor_proximity_e; @@ -82,8 +80,7 @@ typedef enum * pedestrian state as one of the followings. * @since_tizen 3.0 */ -typedef enum -{ +typedef enum { SENSOR_PEDOMETER_STATE_UNKNOWN = -1, /**< Uncertain */ SENSOR_PEDOMETER_STATE_STOP, /**< The user is not moving */ SENSOR_PEDOMETER_STATE_WALK, /**< The user is walking */ @@ -97,8 +94,7 @@ typedef enum * sleep state as one of the followings. * @since_tizen 3.0 */ -typedef enum -{ +typedef enum { SENSOR_SLEEP_STATE_UNKNOWN = -1, /**< Uncertain */ SENSOR_SLEEP_STATE_WAKE, /**< The user is awake */ SENSOR_SLEEP_STATE_SLEEP, /**< The user is asleep */ -- 2.7.4