diff options
author | Heiner Kallweit <hkallweit1@gmail.com> | 2015-10-29 19:22:41 -0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2015-11-19 09:36:48 -0200 |
commit | 068fb7ddd5220fbd65e2f4de7b992eb9419d9684 (patch) | |
tree | 21ea96877de901614d73c571a551d44d692ca579 /drivers | |
parent | d0b528d5f74bb7a8ac4f62a8127ab238ffe7cd09 (diff) | |
download | linux-068fb7ddd5220fbd65e2f4de7b992eb9419d9684.tar.bz2 |
[media] media: rc: nuvoton-cir: simplify debug code
Instead of explicitely checking debug use nvt_dbg like in other parts
of the driver thus simplifying the code.
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/media/rc/nuvoton-cir.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/media/rc/nuvoton-cir.c b/drivers/media/rc/nuvoton-cir.c index ff874fcae7d6..ee1b14ecbed5 100644 --- a/drivers/media/rc/nuvoton-cir.c +++ b/drivers/media/rc/nuvoton-cir.c @@ -716,7 +716,7 @@ static void nvt_get_rx_ir_data(struct nvt_dev *nvt) static void nvt_cir_log_irqs(u8 status, u8 iren) { - nvt_pr(KERN_INFO, "IRQ 0x%02x (IREN 0x%02x) :%s%s%s%s%s%s%s%s%s", + nvt_dbg("IRQ 0x%02x (IREN 0x%02x) :%s%s%s%s%s%s%s%s%s", status, iren, status & CIR_IRSTS_RDR ? " RDR" : "", status & CIR_IRSTS_RTR ? " RTR" : "", @@ -790,8 +790,7 @@ static irqreturn_t nvt_cir_isr(int irq, void *data) return IRQ_NONE; } - if (debug) - nvt_cir_log_irqs(status, iren); + nvt_cir_log_irqs(status, iren); if (status & CIR_IRSTS_RTR) { /* FIXME: add code for study/learn mode */ |