From patchwork Thu Oct 29 21:22:41 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiner Kallweit X-Patchwork-Id: 7521181 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 4CF699F7C9 for ; Thu, 29 Oct 2015 21:23:50 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 848D12060A for ; Thu, 29 Oct 2015 21:23:49 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id DB5642063D for ; Thu, 29 Oct 2015 21:23:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965088AbbJ2VXq (ORCPT ); Thu, 29 Oct 2015 17:23:46 -0400 Received: from mail-wm0-f45.google.com ([74.125.82.45]:33796 "EHLO mail-wm0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932531AbbJ2VXn (ORCPT ); Thu, 29 Oct 2015 17:23:43 -0400 Received: by wmff134 with SMTP id f134so32384368wmf.1 for ; Thu, 29 Oct 2015 14:23:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:subject:to:cc:message-id:date:user-agent:mime-version :content-type:content-transfer-encoding; bh=clkJKlh8zeZjjg63mkUQ87RbsICdYrWJNyAJcINqLJ4=; b=HdGsJS2ywqbsZuGZNic+Y6BZ6BRArAOueoMxPp8zKuIY6PdSdpQ7ooFxxAvOwvtZ6r OzD57XL6PAOp8vHvkyKS9MBzTWA20foSXGTe1LsmFT/nW72JnmvACAy8NOLSRKfhMa5c 5J8OicB5JnSOrDE/mAhTxtH7ILpql4LDcppVjlaYDNpzw6VMJ9LY6EyIbVTc+qODK2nd iZboRdF73mpfFSZDLui2HxTr4ylsMYtbAA1pspE02NbZzuOrl213vskdTgXYYGSb0t11 3GAI+kpN3V6Qv2xDUkAX3JzKxM1K1os9NIC+rKNO3VDuSn0L+ci2mfLj0dYHRFdn4UzW pMkQ== X-Received: by 10.28.19.65 with SMTP id 62mr6127267wmt.35.1446153822378; Thu, 29 Oct 2015 14:23:42 -0700 (PDT) Received: from ?IPv6:2003:62:5f55:ba00:14ec:a654:7de1:4720? (p200300625F55BA0014ECA6547DE14720.dip0.t-ipconnect.de. [2003:62:5f55:ba00:14ec:a654:7de1:4720]) by smtp.googlemail.com with ESMTPSA id v9sm3677904wjv.45.2015.10.29.14.23.41 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 29 Oct 2015 14:23:41 -0700 (PDT) From: Heiner Kallweit Subject: [PATCH 7/9] media: rc: nuvoton-cir: simplify debug code To: Mauro Carvalho Chehab Cc: linux-media@vger.kernel.org Message-ID: <56328E21.3080006@gmail.com> Date: Thu, 29 Oct 2015 22:22:41 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Instead of explicitely checking debug use nvt_dbg like in other parts of the driver thus simplifying the code. Signed-off-by: Heiner Kallweit --- drivers/media/rc/nuvoton-cir.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/media/rc/nuvoton-cir.c b/drivers/media/rc/nuvoton-cir.c index ff874fc..ee1b14e 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 */