diff options
author | Sean Young <sean@mess.org> | 2018-02-12 07:27:50 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2018-02-14 14:15:46 -0500 |
commit | 1f17f684d9ea3aafccbb5d727b19c5ffafb07e75 (patch) | |
tree | 0ce6f64e989c47c5c941801e718d54243a54d99a /drivers/media/rc/lirc_dev.c | |
parent | 50078a903830796a8a47f26edc4cc10b9061711f (diff) |
media: rc: remove IR_dprintk() from rc-core
Use dev_dbg() rather than custom debug function.
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/rc/lirc_dev.c')
-rw-r--r-- | drivers/media/rc/lirc_dev.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/media/rc/lirc_dev.c b/drivers/media/rc/lirc_dev.c index cc863044c880..b01725296b46 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); |