sensor-plugin-tm1: clean up the code 45/58745/1
authorMu-Woong Lee <muwoong.lee@samsung.com>
Wed, 3 Feb 2016 07:46:24 +0000 (16:46 +0900)
committerMu-Woong Lee <muwoong.lee@samsung.com>
Wed, 3 Feb 2016 07:46:24 +0000 (16:46 +0900)
clean up & remove the useless code

Change-Id: I148041ba2d798aeb9022ac9b8f36dd58f3c00810
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
src/CMakeLists.txt
src/interface/sensor_hal_base.cpp
src/interface/sensor_hal_base.h

index caf9ea1..44d2fbb 100644 (file)
@@ -81,6 +81,6 @@ add_library(${PROJECT_NAME} SHARED
        hal_module_create.cpp
 )
 
-target_link_libraries(${PROJECT_NAME} ${plugin_pkgs_LDFLAGS} "-lrt -ldl -pthread")
+target_link_libraries(${PROJECT_NAME} ${plugin_pkgs_LDFLAGS})
 
 install(TARGETS ${PROJECT_NAME} DESTINATION ${CMAKE_INSTALL_LIBDIR}/sensor)
index d50d59d..f450a42 100644 (file)
@@ -55,7 +55,7 @@ unsigned long long sensor_hal_base::get_timestamp(timeval *t)
 
 bool sensor_hal_base::is_sensorhub_controlled(const string &key)
 {
-       string key_node =  string("/sys/class/sensors/ssp_sensor/") + key;
+       string key_node = string("/sys/class/sensors/ssp_sensor/") + key;
 
        if (access(key_node.c_str(), F_OK) == 0)
                return true;
index cfa714c..122aa16 100644 (file)
 */
 
 #ifndef EVIOCSCLOCKID
-#define EVIOCSCLOCKID          _IOW('E', 0xa0, int)                    /* Set clockid to be used for timestamps */
+/* Set clockid to be used for timestamps */
+#define EVIOCSCLOCKID          _IOW('E', 0xa0, int)
 #endif
 
-
 typedef struct {
        int method;
        std::string data_node_path;
@@ -64,19 +64,12 @@ typedef struct {
        std::string prefix;
 } input_method_info;
 
-#define DEFAULT_WAIT_TIME 0
-
 class sensor_hal_base : public sensor_hal
 {
 public:
        sensor_hal_base();
        virtual ~sensor_hal_base();
 
-       bool init(void *data = NULL);
-       long set_command(unsigned int cmd, long val);
-       bool set_wakeup(int wakeup);
-       int send_sensorhub_data(const char *data, int data_len);
-
 protected:
        bool set_enable_node(const std::string &node_path, bool sensorhub_controlled, bool enable, int enable_bit = 0);