For drivers which could have multiple instances, it is necessary to
differentiate between which is which in the logs. Since
DRM_INFO/WARN/ERROR don’t do this, drivers used dev_info/warn/err to
make this differentiation. We now have DRM_DEV_* variants of the drm
print macros, so we can start to convert those drivers back to using
drm-formatted specific log messages.

This patch is using following Coccinelle script:
@@
@@

(
- dev_info
+ DRM_DEV_INFO
|
- dev_err
+ DRM_DEV_ERROR
|
- dev_dbg
+ DRM_DEV_DEBUG
)

Signed-off-by: Aastha Gupta <aastha.gupta4...@gmail.com>
---
 drivers/gpu/drm/panel/panel-innolux-p079zca.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/panel/panel-innolux-p079zca.c 
b/drivers/gpu/drm/panel/panel-innolux-p079zca.c
index 6ba9344..02e6720 100644
--- a/drivers/gpu/drm/panel/panel-innolux-p079zca.c
+++ b/drivers/gpu/drm/panel/panel-innolux-p079zca.c
@@ -228,7 +228,7 @@ static int innolux_panel_add(struct innolux_panel *innolux)
                                                       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.7.4

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

Reply via email to