From patchwork Fri Sep 25 18:30:21 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin Labbe X-Patchwork-Id: 255608 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 18C3BC4741F for ; Fri, 25 Sep 2020 18:32:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id B9D0A22211 for ; Fri, 25 Sep 2020 18:32:33 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=baylibre-com.20150623.gappssmtp.com header.i=@baylibre-com.20150623.gappssmtp.com header.b="EkKxpyyC" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729913AbgIYScb (ORCPT ); Fri, 25 Sep 2020 14:32:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35186 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729890AbgIYScX (ORCPT ); Fri, 25 Sep 2020 14:32:23 -0400 Received: from mail-pg1-x542.google.com (mail-pg1-x542.google.com [IPv6:2607:f8b0:4864:20::542]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A1817C0613CE for ; Fri, 25 Sep 2020 11:32:23 -0700 (PDT) Received: by mail-pg1-x542.google.com with SMTP id o25so3324978pgm.0 for ; Fri, 25 Sep 2020 11:32:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=4I9TKrK8mQBfL74FGJ3Y6iU/hZdg+xeVUjtNAbqFIqo=; b=EkKxpyyCRQPfwk6tXtTWIusqt+JYTltBhuFOOWuz4kGG9Wl/zoWEDRE1lJeFYaKuLG XLoWFDKz5Ae/e4YLOU1XF8kjfuZdheZSUd+7/JTJ+VND1lRcI4KszM2gZDxiAWkdmPgV HrgginFUx1ntgbOqw8lnfhBrRVTjLCq+2Akz5/9dMw0BtOrk0Vt4gZIoKbwokhQ4EUjH xtITe3MdQElPM6tMED9R+gJfSBYpxyw6aG4hXYZHgf9nfWULxXqZcAzjqvU8VNwsPjtz r4kb8AIiXSIJArQ+uipptmyg7i/pOtwBLuhs9NP2erzGL1lExoQFYeb5/W8XFJT1ghH1 B+Fg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=4I9TKrK8mQBfL74FGJ3Y6iU/hZdg+xeVUjtNAbqFIqo=; b=fgJv9FqRBmEVHmI30B0NLwLJm6T1GQ4xZ6hfnikwC07NRAuuC/viVlP/ODiSwIYyKU q43KZ3smlM45fzxaID4jyCaEcSMy82R5QqJLqOIMjBZVwy6X24+8rAbXB40eKUC6/P+S njIxfbiP8ctQtQXzhwu63DeP3Gj8FCm3ZVhi7Z0C7IqkLz6qpM/k6qW421BS7yO0vs6B VqRTC1hURPmIAWg3DfUg2U5JyLyBPKG+eaqBrUw8gdysPafZWMdI1A7ZGA9WZ1Nh/D7p A+0YQx3Za5wLtjXjWg6GmuP4Tw119FldR++rAEqLQaz/xxV9G5D3rXi6/aHPkGYwEwAJ 3s9Q== X-Gm-Message-State: AOAM533NSuha9JFKctwQoIxpJInwVoMtKn+jqq9VhMXd0UNey699wEB+ /uFufBHBX0qZwKe0EYpk8KgRGA== X-Google-Smtp-Source: ABdhPJwmQKSNHbj3FK9SVRlV13a+dFjKhinVBBkgWkygxcDqc1dh6TOjxWo6eXKRNPJRs9yVoNYYZA== X-Received: by 2002:a63:ea15:: with SMTP id c21mr225421pgi.446.1601058743233; Fri, 25 Sep 2020 11:32:23 -0700 (PDT) Received: from localhost.localdomain ([51.15.160.169]) by smtp.googlemail.com with ESMTPSA id r16sm2554546pjo.19.2020.09.25.11.32.17 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 25 Sep 2020 11:32:22 -0700 (PDT) From: Corentin Labbe To: gregkh@linuxfoundation.org, mchehab@kernel.org, hverkuil@xs4all.nl, laurent.pinchart@ideasonboard.com Cc: devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, Corentin Labbe Subject: [PATCH RFT/RFC v2 11/47] staging: media: zoran: zoran_device.c: convert pr_x to pci_x Date: Fri, 25 Sep 2020 18:30:21 +0000 Message-Id: <1601058657-14042-12-git-send-email-clabbe@baylibre.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1601058657-14042-1-git-send-email-clabbe@baylibre.com> References: <1601058657-14042-1-git-send-email-clabbe@baylibre.com> Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Signed-off-by: Corentin Labbe --- drivers/staging/media/zoran/zoran_device.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/staging/media/zoran/zoran_device.c b/drivers/staging/media/zoran/zoran_device.c index 61b4cfccc168..e50153218f72 100644 --- a/drivers/staging/media/zoran/zoran_device.c +++ b/drivers/staging/media/zoran/zoran_device.c @@ -162,7 +162,7 @@ static void dump_guests(struct zoran *zr) for (i = 1; i < 8; i++) /* Don't read jpeg codec here */ guest[i] = post_office_read(zr, i, 0); - pr_info("%s: Guests: %*ph\n", ZR_DEVNAME(zr), 8, guest); + pci_info(zr->pci_dev, "Guests: %*ph\n", 8, guest); } } @@ -172,7 +172,7 @@ void detect_guest_activity(struct zoran *zr) ktime_t t0, t1; dump_guests(zr); - pr_info("%s: Detecting guests activity, please wait...\n", ZR_DEVNAME(zr)); + pci_info(zr->pci_dev, "Detecting guests activity, please wait...\n"); for (i = 1; i < 8; i++) /* Don't read jpeg codec here */ guest0[i] = guest[i] = post_office_read(zr, i, 0); @@ -198,15 +198,14 @@ void detect_guest_activity(struct zoran *zr) break; } - pr_info("%s: Guests: %*ph\n", ZR_DEVNAME(zr), 8, guest0); + pci_info(zr->pci_dev, "Guests: %*ph\n", 8, guest0); if (j == 0) { - pr_info("%s: No activity detected.\n", ZR_DEVNAME(zr)); + pci_info(zr->pci_dev, "No activity detected.\n"); return; } for (i = 0; i < j; i++) - pr_info("%s: %6d: %d => 0x%02x\n", ZR_DEVNAME(zr), - change[i][0], change[i][1], change[i][2]); + pci_info(zr->pci_dev, "%6d: %d => 0x%02x\n", change[i][0], change[i][1], change[i][2]); } /*