lkml.org 
[lkml]   [2019]   [Jan]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH v1 17/19] drm/panel: seiko: use DRM_DEV*
Date
Introduce use of DRM_DEV* for logging.
This makes logging in the drm subsystem more consistent.

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Cc: Thierry Reding <thierry.reding@gmail.com>
Cc: David Airlie <airlied@linux.ie>
Cc: Daniel Vetter <daniel@ffwll.ch>
---
drivers/gpu/drm/panel/panel-seiko-43wvf1g.c | 14 ++++++++------
1 file changed, 8 insertions(+), 6 deletions(-)

diff --git a/drivers/gpu/drm/panel/panel-seiko-43wvf1g.c b/drivers/gpu/drm/panel/panel-seiko-43wvf1g.c
index c1348a687447..26da26d38241 100644
--- a/drivers/gpu/drm/panel/panel-seiko-43wvf1g.c
+++ b/drivers/gpu/drm/panel/panel-seiko-43wvf1g.c
@@ -16,6 +16,7 @@
#include <drm/drm_crtc.h>
#include <drm/drm_device.h>
#include <drm/drm_panel.h>
+#include <drm/drm_print.h>

#include <video/display_timing.h>
#include <video/videomode.h>
@@ -73,8 +74,8 @@ static int seiko_panel_get_fixed_modes(struct seiko_panel *panel)
videomode_from_timing(dt, &vm);
mode = drm_mode_create(drm);
if (!mode) {
- dev_err(drm->dev, "failed to add mode %ux%u\n",
- dt->hactive.typ, dt->vactive.typ);
+ DRM_DEV_ERROR(drm->dev, "failed to add mode %ux%u\n",
+ dt->hactive.typ, dt->vactive.typ);
continue;
}

@@ -94,8 +95,9 @@ static int seiko_panel_get_fixed_modes(struct seiko_panel *panel)

mode = drm_mode_duplicate(drm, m);
if (!mode) {
- dev_err(drm->dev, "failed to add mode %ux%u@%u\n",
- m->hdisplay, m->vdisplay, m->vrefresh);
+ DRM_DEV_ERROR(drm->dev,
+ "failed to add mode %ux%u@%u\n",
+ m->hdisplay, m->vdisplay, m->vrefresh);
continue;
}

@@ -168,7 +170,7 @@ static int seiko_panel_prepare(struct drm_panel *panel)

err = regulator_enable(p->dvdd);
if (err < 0) {
- dev_err(panel->dev, "failed to enable dvdd: %d\n", err);
+ DRM_DEV_ERROR(panel->dev, "failed to enable dvdd: %d\n", err);
return err;
}

@@ -177,7 +179,7 @@ static int seiko_panel_prepare(struct drm_panel *panel)

err = regulator_enable(p->avdd);
if (err < 0) {
- dev_err(panel->dev, "failed to enable avdd: %d\n", err);
+ DRM_DEV_ERROR(panel->dev, "failed to enable avdd: %d\n", err);
goto disable_dvdd;
}

--
2.12.0
\
 
 \ /
  Last update: 2019-01-31 20:27    [W:0.130 / U:20.572 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site