Received: by 2002:ac0:8c9a:0:0:0:0:0 with SMTP id r26csp10222ima; Thu, 31 Jan 2019 11:31:18 -0800 (PST) X-Google-Smtp-Source: ALg8bN4/wCjSwW3z2ec6v+l99Le6NxeC6lfbh17PSZG+owHvLk1/otqW0Do6W44nlZAu2gnkWi7d X-Received: by 2002:a63:c503:: with SMTP id f3mr31814794pgd.431.1548963078164; Thu, 31 Jan 2019 11:31:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548963078; cv=none; d=google.com; s=arc-20160816; b=Qvk2lLvSOrS6778HUasm2szsrgzo3fwMrLWoWAu9dU6wNTjuVNKpvkIEOS3GtDme/N yzFnO91jkRRoo3pOcXWa/q4XoKKSEE1CoAkJQefeTDIqA9yoZQo82LdwYDiwHigX4su6 JHL0m6xLLB4YT1QpAoTIVsRJoMLKdgeJ3jGVKZqa66KAyjI+irYCyZxFqL4tpH8y+O2K RbT5Wq4Z+3M3tRDrAIPTkV08g8WW/wlltT2JESywsCYmu7afHiIXg3ermQklUfoHYfmd ymwhGy2aC2XnjwkxFb8vxpqsNs0WWxm1rFAcdkCTQRQetoLgOUqQBWpduPrzU7Iqc6Bm eUnA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=OzYRfWRAb2KKmOH22539kqwCxbsuO0TMethjfVC3960=; b=gGVMWOlUVsC8i7v9bHZo1bxSYaZgvVnBnl8gy/vEbcn2jhbdP0CBeubRwj1SgTucUD Lsk02lZlJfUnm4uq/IqeREHznJbaqsNRLnEPk3t7MutlLfMt69WTXZMd0TX9XJ+sqJE5 QofO/+fF3ilvSY59FXmtdfbFSmmcPDp3tlB0AevgNMQAtm/jvb5nHdgf0u/v+8y8C/J1 WIoSy/VBcuVypbmZE2TK4xpemcgHgS1jvHSuMBpDhTcn9Ikoe7I3wE04y2xUA2hFkoxK Wj/Hq+hRee2jDN8PLo0SP+4FcYgENVyCcKEz6lU2PbWTmAqsHDnyS2i3zfnI6jKwpysr 5J7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=vPzDhHkL; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k134si5166351pga.401.2019.01.31.11.31.03; Thu, 31 Jan 2019 11:31:18 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=vPzDhHkL; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728757AbfAaT0o (ORCPT + 99 others); Thu, 31 Jan 2019 14:26:44 -0500 Received: from mail-lj1-f196.google.com ([209.85.208.196]:38231 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728698AbfAaT0l (ORCPT ); Thu, 31 Jan 2019 14:26:41 -0500 Received: by mail-lj1-f196.google.com with SMTP id c19-v6so3695029lja.5 for ; Thu, 31 Jan 2019 11:26:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=OzYRfWRAb2KKmOH22539kqwCxbsuO0TMethjfVC3960=; b=vPzDhHkL+hXDWyPoURwm9HjWrysQ0B181hztMuTK6vmVOBDlWmUo5I0obT/pGoidKe DTrk3kmVpeXTvKHaCJ1Y68e8fiN8HfPzKnJGGjD+/x8Ehlxr4Ve/mfqB7fzeSK7cArwJ iU2AVxRFjvFIf7xgpwos78BX7h4u3tpNrNYJIy+8CuvQeLUy9cfYGKC4mIu73CS3FenY XE1cYw1LxUUrKqPCx/wRJKiK+/pmzeMJU3sFCTyCGkO8HioUZbm7eD3xl5A2U9TBS7Oz qdGxohXacHM2jUM0n2sJD9r9W8RygtgtCD2EmZLnEyd4B2QYD7hIHd0wG0FsXV4DW3e8 y1HA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=OzYRfWRAb2KKmOH22539kqwCxbsuO0TMethjfVC3960=; b=V8l0xnB+NtyyZxd56q4Pa8KaTnL0+PGCHEpblt5G0t7DR26vSbIBCk2iPd5X8S7fkv QMVd6c5UNPF6/ZSdNVBJfNw+o3LPycp1JmYDLWEU8g9KsZbjoKitCAFRm6ftJtJ4PMwv 7CaHgxvkaIlLa4MHocIysuHGAy4Aa7yhNU3w56qArw+QIeN+h/flChFIxymG+Oq0UqTK ivckwNTsrmzMn/FDf/oMDvIHdaxHStqrPAGBnMTw9A5t8wbDCOYSmvlMMzvQbl9Tl6EG kx2kY10iitY9vo7RC4Si74iFLvlWl49c75lIawYrfMTjsLFiNxziWmc6mP7NaIxzt+Gb F8Jg== X-Gm-Message-State: AJcUukd1Wr/F99eUGV9W/Ngc0qAxErewKAvc7wTPucNqINSgYmf9Zx+p 41Woa+j6QaC5uW18feVhzduGPu18 X-Received: by 2002:a2e:7615:: with SMTP id r21-v6mr29289187ljc.131.1548962798638; Thu, 31 Jan 2019 11:26:38 -0800 (PST) Received: from jupiter.lan (18.158-248-194.customer.lyse.net. [158.248.194.18]) by smtp.gmail.com with ESMTPSA id f1sm987363lfm.22.2019.01.31.11.26.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 31 Jan 2019 11:26:38 -0800 (PST) From: Sam Ravnborg To: Thierry Reding , dri-devel@lists.freedesktop.org Cc: Daniel Vetter , David Airlie , Linus Walleij , Stefan Mavrodiev , linux-kernel@vger.kernel.org, Sam Ravnborg Subject: [PATCH v1 04/19] drm/panel: arm-versatile: use DRM_DEV* Date: Thu, 31 Jan 2019 20:26:04 +0100 Message-Id: <20190131192619.9763-5-sam@ravnborg.org> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20190131192619.9763-1-sam@ravnborg.org> References: <20190131192619.9763-1-sam@ravnborg.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Introduce use of DRM_DEV* for logging. This makes logging in the drm subsystem more consistent. Signed-off-by: Sam Ravnborg Cc: Thierry Reding Cc: David Airlie Cc: Daniel Vetter Cc: Stefan Mavrodiev --- drivers/gpu/drm/panel/panel-arm-versatile.c | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-arm-versatile.c b/drivers/gpu/drm/panel/panel-arm-versatile.c index 0ed8ee4673eb..d7139b7aff7d 100644 --- a/drivers/gpu/drm/panel/panel-arm-versatile.c +++ b/drivers/gpu/drm/panel/panel-arm-versatile.c @@ -27,6 +27,7 @@ */ #include #include +#include #include #include @@ -233,7 +234,7 @@ static int versatile_panel_disable(struct drm_panel *panel) /* If we're on an IB2 daughterboard, turn off display */ if (vpanel->ib2_map) { - dev_dbg(vpanel->dev, "disable IB2 display\n"); + DRM_DEV_DEBUG(vpanel->dev, "disable IB2 display\n"); regmap_update_bits(vpanel->ib2_map, IB2_CTRL, IB2_CTRL_LCD_MASK, @@ -249,7 +250,7 @@ static int versatile_panel_enable(struct drm_panel *panel) /* If we're on an IB2 daughterboard, turn on display */ if (vpanel->ib2_map) { - dev_dbg(vpanel->dev, "enable IB2 display\n"); + DRM_DEV_DEBUG(vpanel->dev, "enable IB2 display\n"); regmap_update_bits(vpanel->ib2_map, IB2_CTRL, IB2_CTRL_LCD_MASK, @@ -300,12 +301,12 @@ static int versatile_panel_probe(struct platform_device *pdev) parent = dev->parent; if (!parent) { - dev_err(dev, "no parent for versatile panel\n"); + DRM_DEV_ERROR(dev, "no parent for versatile panel\n"); return -ENODEV; } map = syscon_node_to_regmap(parent->of_node); if (IS_ERR(map)) { - dev_err(dev, "no regmap for versatile panel parent\n"); + DRM_DEV_ERROR(dev, "no regmap for versatile panel parent\n"); return PTR_ERR(map); } @@ -315,7 +316,7 @@ static int versatile_panel_probe(struct platform_device *pdev) ret = regmap_read(map, SYS_CLCD, &val); if (ret) { - dev_err(dev, "cannot access syscon regs\n"); + DRM_DEV_ERROR(dev, "cannot access syscon regs\n"); return ret; } @@ -333,11 +334,11 @@ static int versatile_panel_probe(struct platform_device *pdev) /* No panel detected or VGA, let's leave this show */ if (i == ARRAY_SIZE(versatile_panels)) { - dev_info(dev, "no panel detected\n"); + DRM_DEV_INFO(dev, "no panel detected\n"); return -ENODEV; } - dev_info(dev, "detected: %s\n", vpanel->panel_type->name); + DRM_DEV_INFO(dev, "detected: %s\n", vpanel->panel_type->name); vpanel->dev = dev; vpanel->map = map; @@ -348,7 +349,8 @@ static int versatile_panel_probe(struct platform_device *pdev) if (IS_ERR(vpanel->ib2_map)) vpanel->ib2_map = NULL; else - dev_info(dev, "panel mounted on IB2 daughterboard\n"); + DRM_DEV_INFO(dev, + "panel mounted on IB2 daughterboard\n"); } drm_panel_init(&vpanel->panel); -- 2.12.0