Introduce use of DRM_DEV* for logging. This makes logging in the drm subsystem more consistent. Signed-off-by: Sam Ravnborg <sam@xxxxxxxxxxxx> Cc: Thierry Reding <thierry.reding@xxxxxxxxx> Cc: David Airlie <airlied@xxxxxxxx> Cc: Daniel Vetter <daniel@xxxxxxxx> --- 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 _______________________________________________ dri-devel mailing list dri-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/dri-devel