sensor: hal: tm1: fix coding rule violations 24/149224/1 accepted/tizen/unified/20170913.071910 submit/tizen/20170912.122717
authorkibak.yoon <kibak.yoon@samsung.com>
Tue, 12 Sep 2017 02:12:33 +0000 (11:12 +0900)
committerkibak.yoon <kibak.yoon@samsung.com>
Tue, 12 Sep 2017 02:12:33 +0000 (11:12 +0900)
Change-Id: I5dfd6174d5398d95b88acef9877c3c06589d83b5
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
src/accel/accel_device.h
src/proxi/proxi_device.cpp
src/proxi/proxi_device.h
src/sensor_log.h
src/sensorhub/system_state.cpp
src/util.cpp

index 36c958d..6c4b02b 100644 (file)
@@ -53,7 +53,7 @@ private:
        std::string m_enable_node;
        std::string m_interval_node;
 
-       std::function<bool (void)> update_value;
+       std::function<bool(void)> update_value;
 
        std::vector<uint32_t> event_ids;
 
index dc81ef8..8f97781 100644 (file)
@@ -164,7 +164,7 @@ bool proxi_device::update_value_input_event(void)
                return false;
 
        if (proxi_event.value != PROXIMITY_NODE_STATE_FAR && proxi_event.value != PROXIMITY_NODE_STATE_NEAR) {
-               _E("PROXIMITY_STATE Unknown: %d",proxi_event.value);
+               _E("PROXIMITY_STATE Unknown: %d", proxi_event.value);
                return false;
        }
 
index 2ddb5e4..f9cf22b 100644 (file)
@@ -53,7 +53,7 @@ private:
        std::string m_data_node;
        std::string m_enable_node;
 
-       std::function<bool (void)> update_value;
+       std::function<bool(void)> update_value;
 
        std::vector<uint32_t> event_ids;
 
index 8e593e2..ac9e8c2 100644 (file)
 #endif
 #define LOG_TAG        "SENSOR"
 
-#define LOG_DUMP(fp, fmt, arg...) do { if (fp) fprintf(fp, fmt, ##arg); else _E(fmt, ##arg); } while(0)
+#define LOG_DUMP(fp, fmt, arg...) do { if (fp) fprintf(fp, fmt, ##arg); else _E(fmt, ##arg); } while (0)
 
 #ifdef _DEBUG
 #define DBG SLOGD
 #else
-#define DBG(...) do{} while(0)
+#define DBG(...) do { } while (0)
 #endif
 
 #define ERR SLOGE
index 5fdce86..e3eb041 100644 (file)
@@ -65,7 +65,6 @@ bool system_state_handler::start_listen_display_state()
 
 void system_state_handler::stop_listen_display_state()
 {
-
 }
 
 void system_state_handler::poweroff_signal_handler(GDBusConnection *conn, const gchar *name, const gchar *path, const gchar *interface,
index e725c3a..a75ff25 100644 (file)
@@ -153,7 +153,6 @@ static bool get_input_method(const string &key, int &method, string &device_num)
        bool find = false;
 
        for (int i = 0; i < input_info_len; ++i) {
-
                prefix_size = input_info[i].prefix.size();
 
                dir = opendir(input_info[i].dir_path.c_str());