[media] media: rc: nuvoton-cir: simplify debug code
authorHeiner Kallweit <hkallweit1@gmail.com>
Thu, 29 Oct 2015 21:22:41 +0000 (19:22 -0200)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Thu, 19 Nov 2015 11:36:48 +0000 (09:36 -0200)
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>
drivers/media/rc/nuvoton-cir.c

index ff874fcae7d6492f99f98ec56c8eed2afd2d1423..ee1b14ecbed5d0b52e57c5f9498a16a85381a7b6 100644 (file)
@@ -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 */
This page took 0.026352 seconds and 5 git commands to generate.