aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/IR/ir-core-priv.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/IR/ir-core-priv.h')
-rw-r--r--drivers/media/IR/ir-core-priv.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/media/IR/ir-core-priv.h b/drivers/media/IR/ir-core-priv.h
index babd52061bc3..dc26e2beeefb 100644
--- a/drivers/media/IR/ir-core-priv.h
+++ b/drivers/media/IR/ir-core-priv.h
@@ -76,7 +76,6 @@ struct ir_raw_event_ctrl {
76 struct lirc_codec { 76 struct lirc_codec {
77 struct ir_input_dev *ir_dev; 77 struct ir_input_dev *ir_dev;
78 struct lirc_driver *drv; 78 struct lirc_driver *drv;
79 int lircdata;
80 } lirc; 79 } lirc;
81}; 80};
82 81
@@ -104,10 +103,9 @@ static inline void decrease_duration(struct ir_raw_event *ev, unsigned duration)
104 ev->duration -= duration; 103 ev->duration -= duration;
105} 104}
106 105
107#define TO_US(duration) (((duration) + 500) / 1000) 106#define TO_US(duration) DIV_ROUND_CLOSEST((duration), 1000)
108#define TO_STR(is_pulse) ((is_pulse) ? "pulse" : "space") 107#define TO_STR(is_pulse) ((is_pulse) ? "pulse" : "space")
109#define IS_RESET(ev) (ev.duration == 0) 108#define IS_RESET(ev) (ev.duration == 0)
110
111/* 109/*
112 * Routines from ir-sysfs.c - Meant to be called only internally inside 110 * Routines from ir-sysfs.c - Meant to be called only internally inside
113 * ir-core 111 * ir-core