diff options
Diffstat (limited to 'drivers/media/rc/lirc_dev.c')
-rw-r--r-- | drivers/media/rc/lirc_dev.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/drivers/media/rc/lirc_dev.c b/drivers/media/rc/lirc_dev.c index cc863044c880..24e9fbb80e81 100644 --- a/drivers/media/rc/lirc_dev.c +++ b/drivers/media/rc/lirc_dev.c | |||
@@ -60,12 +60,12 @@ void ir_lirc_raw_event(struct rc_dev *dev, struct ir_raw_event ev) | |||
60 | * space with the maximum time value. | 60 | * space with the maximum time value. |
61 | */ | 61 | */ |
62 | sample = LIRC_SPACE(LIRC_VALUE_MASK); | 62 | sample = LIRC_SPACE(LIRC_VALUE_MASK); |
63 | IR_dprintk(2, "delivering reset sync space to lirc_dev\n"); | 63 | dev_dbg(&dev->dev, "delivering reset sync space to lirc_dev\n"); |
64 | 64 | ||
65 | /* Carrier reports */ | 65 | /* Carrier reports */ |
66 | } else if (ev.carrier_report) { | 66 | } else if (ev.carrier_report) { |
67 | sample = LIRC_FREQUENCY(ev.carrier); | 67 | sample = LIRC_FREQUENCY(ev.carrier); |
68 | IR_dprintk(2, "carrier report (freq: %d)\n", sample); | 68 | dev_dbg(&dev->dev, "carrier report (freq: %d)\n", sample); |
69 | 69 | ||
70 | /* Packet end */ | 70 | /* Packet end */ |
71 | } else if (ev.timeout) { | 71 | } else if (ev.timeout) { |
@@ -77,7 +77,7 @@ void ir_lirc_raw_event(struct rc_dev *dev, struct ir_raw_event ev) | |||
77 | dev->gap_duration = ev.duration; | 77 | dev->gap_duration = ev.duration; |
78 | 78 | ||
79 | sample = LIRC_TIMEOUT(ev.duration / 1000); | 79 | sample = LIRC_TIMEOUT(ev.duration / 1000); |
80 | IR_dprintk(2, "timeout report (duration: %d)\n", sample); | 80 | dev_dbg(&dev->dev, "timeout report (duration: %d)\n", sample); |
81 | 81 | ||
82 | /* Normal sample */ | 82 | /* Normal sample */ |
83 | } else { | 83 | } else { |
@@ -100,8 +100,8 @@ void ir_lirc_raw_event(struct rc_dev *dev, struct ir_raw_event ev) | |||
100 | 100 | ||
101 | sample = ev.pulse ? LIRC_PULSE(ev.duration / 1000) : | 101 | sample = ev.pulse ? LIRC_PULSE(ev.duration / 1000) : |
102 | LIRC_SPACE(ev.duration / 1000); | 102 | LIRC_SPACE(ev.duration / 1000); |
103 | IR_dprintk(2, "delivering %uus %s to lirc_dev\n", | 103 | dev_dbg(&dev->dev, "delivering %uus %s to lirc_dev\n", |
104 | TO_US(ev.duration), TO_STR(ev.pulse)); | 104 | TO_US(ev.duration), TO_STR(ev.pulse)); |
105 | } | 105 | } |
106 | 106 | ||
107 | spin_lock_irqsave(&dev->lirc_fh_lock, flags); | 107 | spin_lock_irqsave(&dev->lirc_fh_lock, flags); |
@@ -249,8 +249,6 @@ static ssize_t ir_lirc_transmit_ir(struct file *file, const char __user *buf, | |||
249 | goto out_unlock; | 249 | goto out_unlock; |
250 | } | 250 | } |
251 | 251 | ||
252 | start = ktime_get(); | ||
253 | |||
254 | if (!dev->tx_ir) { | 252 | if (!dev->tx_ir) { |
255 | ret = -EINVAL; | 253 | ret = -EINVAL; |
256 | goto out_unlock; | 254 | goto out_unlock; |
@@ -343,6 +341,8 @@ static ssize_t ir_lirc_transmit_ir(struct file *file, const char __user *buf, | |||
343 | duration += txbuf[i]; | 341 | duration += txbuf[i]; |
344 | } | 342 | } |
345 | 343 | ||
344 | start = ktime_get(); | ||
345 | |||
346 | ret = dev->tx_ir(dev, txbuf, count); | 346 | ret = dev->tx_ir(dev, txbuf, count); |
347 | if (ret < 0) | 347 | if (ret < 0) |
348 | goto out_kfree; | 348 | goto out_kfree; |
@@ -570,7 +570,7 @@ static long ir_lirc_ioctl(struct file *file, unsigned int cmd, | |||
570 | ret = -EINVAL; | 570 | ret = -EINVAL; |
571 | else if (dev->s_timeout) | 571 | else if (dev->s_timeout) |
572 | ret = dev->s_timeout(dev, tmp); | 572 | ret = dev->s_timeout(dev, tmp); |
573 | else if (!ret) | 573 | else |
574 | dev->timeout = tmp; | 574 | dev->timeout = tmp; |
575 | } | 575 | } |
576 | break; | 576 | break; |
@@ -804,8 +804,8 @@ int __init lirc_dev_init(void) | |||
804 | return retval; | 804 | return retval; |
805 | } | 805 | } |
806 | 806 | ||
807 | pr_info("IR Remote Control driver registered, major %d\n", | 807 | pr_debug("IR Remote Control driver registered, major %d\n", |
808 | MAJOR(lirc_base_dev)); | 808 | MAJOR(lirc_base_dev)); |
809 | 809 | ||
810 | return 0; | 810 | return 0; |
811 | } | 811 | } |