Received: by 2002:ac0:8c9a:0:0:0:0:0 with SMTP id r26csp12790ima; Thu, 31 Jan 2019 11:33:36 -0800 (PST) X-Google-Smtp-Source: ALg8bN5pMMCGx8ntIQ90M9De9ufp02+pYcCUZeocA+NrCnKo6rgBNKKJLDdSi0QFTEXn1W2Vtg59 X-Received: by 2002:a63:6a05:: with SMTP id f5mr32213026pgc.72.1548963216338; Thu, 31 Jan 2019 11:33:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548963216; cv=none; d=google.com; s=arc-20160816; b=M2Gij75H7t9VT1+EYReyHjVs+YbQGo01GQedV0RstZd4fWa9WEPi8FcFngIrd/5m9E FO0Vb014xYLImu05430dZJt7ihykf25cQp0POMhXht8fFYY5t0tzEKTm1hqp2iM/chEU QjNdkT7ADzq0VZMCKng1EodmaXs3F2Ud3xJRXXKCOet1zRg9uz6P9/IRij+Vq/1uuoWX oZeETq9tNNr3GYb2QLHMMm01Q4ld1UVnPs9A/a5P4m5qI2hNNtU3nFVWKXfFZE6me6B0 Jaorz9jPXoz/d7nY3WiuHz9ZIk/pl5yb96P38NE9xpaatCw8sntjYfwrlaq1/jkA6Vzb iSEA== 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=bDEz27tLmLKZREidfmHzJVIXlEr2ANQp/rtHlOQ/MMk=; b=P3p2qFqfR4Eb6kTAe4BMtYqZ0l0VjGncnE2ULYAZ8iEGblO0Nd9r8hEOUrjiVqz8TJ i13BBAhGFIjEFZWtS/qdRaVBd97qnEXgqDnfgUIKmgWwFpKKmW7sY0pfCUIGyByaHwFv I2sdSEDiMbte/UJmvuYzBaMk3ttKyoe+HLVaBA5X7pGt9YmUo+DzOroEAX7rgqvDAkTr Sndi8pXjxqvbbD46Fva+UrMmX7Ej5nfDetzCNwEl8dnC9p4FZP7tA/NmMF40JMF37r7Q nUhYC17nF1AUL3onYsGHbXxwdqdUU3LQqJZcKu8q/7/bUvMr16xmpnfFAwKp8HOx68H9 voOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=f62HCysO; 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 h5si4851251pgg.230.2019.01.31.11.33.21; Thu, 31 Jan 2019 11:33:36 -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=f62HCysO; 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 S1729007AbfAaT1s (ORCPT + 99 others); Thu, 31 Jan 2019 14:27:48 -0500 Received: from mail-lj1-f194.google.com ([209.85.208.194]:43022 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728728AbfAaT0o (ORCPT ); Thu, 31 Jan 2019 14:26:44 -0500 Received: by mail-lj1-f194.google.com with SMTP id q2-v6so3658524lji.10 for ; Thu, 31 Jan 2019 11:26:43 -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=bDEz27tLmLKZREidfmHzJVIXlEr2ANQp/rtHlOQ/MMk=; b=f62HCysOuNBE2rtprEjceH+goSD7jiTEVLVfah7KIjc4zCNPsDRWTtBmJsq2CnOy4y jENInaSQz6BPI51mrBKqeM35o7pRlBbj4gEdz91nLWiNpT34/YKS5zzYeoinOYZpI8aL vg+Xk8F6ZhqsX4Yf5lPhX4KgMGSZmFRTZLLt9duYKkZkXProRr6rNEDH8qnDjcUa5xQ4 vIBmUgY3THmWG2hYyr7vK4zhqCKRS99NGbJFUz+bXdvjAVODhw4nPGNJX7koSqg7lQ90 XPGGVM+YSBEY473nTqnA8t4H1OvbbQ4GXLAS9c7nq4SarSsF+LlinRYUvavBVzPU42Q+ xNyw== 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=bDEz27tLmLKZREidfmHzJVIXlEr2ANQp/rtHlOQ/MMk=; b=RTWkGzAOc1pBsfTvdocuGP9Wil6ceTNtW3rVqdK13Eilf3lSQ6yiqRHtjeP987sRvu khA7CLbM08A/lr+7dx81N3smMOQ0594ge7MDGkdSyNiaIE/tQHJooPCwGH2KWrMrqbkH iIsdUNMCORdg97Yo5W35sTgC7Ft+Y78CkeqX/2gFJ0rRdl/bswyRUq2P3Hzcsk4ZFAGy 9qFmVJbS5yNT2TVXTnHiciIQgZFbcalUmsd9XnTQGDgqH06fFXV7HIAsA4NLFVlyLg3c yxXUKACTffZJxyd7/UbGS1T/MhlrTmmTNvd1Sd7VPVRIjYQm5rsU2sPK3kv1ztY7hclr YITA== X-Gm-Message-State: AHQUAub5lFwlogR3HQRP97re0WMxOp2ylB+ODo6YRdfU0eelBJy4LGhs qo4SXigae7S4Q5JPlixcE/M= X-Received: by 2002:a2e:2e1a:: with SMTP id u26-v6mr12454193lju.8.1548962802266; Thu, 31 Jan 2019 11:26:42 -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.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 31 Jan 2019 11:26:41 -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 08/19] drm/panel: innolux: use DRM_DEV* Date: Thu, 31 Jan 2019 20:26:08 +0100 Message-Id: <20190131192619.9763-9-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 --- drivers/gpu/drm/panel/panel-innolux-p079zca.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-innolux-p079zca.c b/drivers/gpu/drm/panel/panel-innolux-p079zca.c index c8d0da3116dd..cf18594d1954 100644 --- a/drivers/gpu/drm/panel/panel-innolux-p079zca.c +++ b/drivers/gpu/drm/panel/panel-innolux-p079zca.c @@ -154,8 +154,9 @@ static int innolux_panel_prepare(struct drm_panel *panel) err = mipi_dsi_generic_write(innolux->link, cmd->data, cmd->len); if (err < 0) { - dev_err(panel->dev, - "failed to write command %u\n", i); + DRM_DEV_ERROR(panel->dev, + "failed to write command %u\n", + i); goto poweroff; } @@ -166,8 +167,9 @@ static int innolux_panel_prepare(struct drm_panel *panel) */ err = mipi_dsi_dcs_nop(innolux->link); if (err < 0) { - dev_err(panel->dev, - "failed to send DCS nop: %d\n", err); + DRM_DEV_ERROR(panel->dev, + "failed to send DCS nop: %d\n", + err); goto poweroff; } } @@ -482,7 +484,7 @@ static int innolux_panel_add(struct mipi_dsi_device *dsi, GPIOD_OUT_HIGH); if (IS_ERR(innolux->enable_gpio)) { err = PTR_ERR(innolux->enable_gpio); - dev_dbg(dev, "failed to get enable gpio: %d\n", err); + DRM_DEV_DEBUG(dev, "failed to get enable gpio: %d\n", err); innolux->enable_gpio = NULL; } -- 2.12.0