display: headed: Remove unnecessary header
[platform/core/system/deviced.git] / plugins / iot-headed / display / key-filter.c
index ea1ed4e..140a560 100644 (file)
 #include <system/syscommon-plugin-deviced-display-interface.h>
 #include <linux/input.h>
 
-#include "core.h"
-#include "poll.h"
-#include "device-interface.h"
 #include "display-actor.h"
 #include "display-backlight.h"
-#include "display-ops.h"
 #include "display-config.h"
 #include "display-misc.h"
 #include "display-state-transition.h"
-#include "display-util.h"
 #include "shared/apps.h"
 #include <libsyscommon/log.h>
 #include "led/touch-key.h"
@@ -260,7 +255,7 @@ static inline void switch_off_lcd(void)
 static void check_key_combination(struct input_event *pinput)
 {
        double press_time, diff_time;
-       press_time = (pinput->time).tv_sec + USEC_TO_SEC((pinput->time).tv_usec);
+       press_time = (pinput->time).tv_sec + ((pinput->time).tv_usec / 1000000.0);
        diff_time = press_time - combination_pressed_time;
 
        switch (key_combination) {