sensor-plugin-tm1: clean up the code
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 caf9ea1f5e7bd4f7170f2483c2eec2fe02df3324..44d2fbb595531b575e05586f344e30ea7f5a7597 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 d50d59d5e32bb88f982d447a54385b0724e74906..f450a422f0b5e0fedcc44aaa0bca54da59bddd09 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 cfa714c8d09fa243a0cacf696904f9283ad209e0..122aa165a99acb0c21fea088e4ee257194fb2ed3 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);