From: Piyush Patle <piyushpatle228@gmail.com>
To: dri-devel@lists.freedesktop.org
Cc: andrzej.hajda@intel.com, neil.armstrong@linaro.org,
robert.foss@linaro.org, Laurent.pinchart@ideasonboard.com,
jonas@kwiboo.se, jernej.skrabec@gmail.com,
maarten.lankhorst@linux.intel.com, mripard@kernel.org,
tzimmermann@suse.de, airlied@gmail.com,
linux-kernel@vger.kernel.org
Subject: [PATCH 1/5] drm/bridge: simple-bridge: replace deprecated DRM logging macros
Date: Sun, 7 Jun 2026 01:06:15 +0530 [thread overview]
Message-ID: <20260606193625.24465-2-piyushpatle228@gmail.com> (raw)
In-Reply-To: <20260606193625.24465-1-piyushpatle228@gmail.com>
Replace deprecated DRM_ERROR() and DRM_INFO() with device-aware
drm_err() and drm_info(), passing bridge->dev or connector->dev.
This is preferred over the plain pr_err()/pr_info() suggested by
the deprecation note as it associates log output with the DRM device.
No functional changes.
Signed-off-by: Piyush Patle <piyushpatle228@gmail.com>
---
drivers/gpu/drm/bridge/simple-bridge.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/gpu/drm/bridge/simple-bridge.c b/drivers/gpu/drm/bridge/simple-bridge.c
index 8aa31ca3c72d..d8457e68c342 100644
--- a/drivers/gpu/drm/bridge/simple-bridge.c
+++ b/drivers/gpu/drm/bridge/simple-bridge.c
@@ -56,7 +56,7 @@ static int simple_bridge_get_modes(struct drm_connector *connector)
if (sbridge->bridge.next_bridge->ops & DRM_BRIDGE_OP_EDID) {
drm_edid = drm_bridge_edid_read(sbridge->bridge.next_bridge, connector);
if (!drm_edid)
- DRM_INFO("EDID read failed. Fallback to standard modes\n");
+ drm_info(connector->dev, "EDID read failed. Fallback to standard modes\n");
} else {
drm_edid = NULL;
}
@@ -123,7 +123,7 @@ static int simple_bridge_attach(struct drm_bridge *bridge,
sbridge->info->connector_type,
sbridge->bridge.next_bridge->ddc);
if (ret) {
- DRM_ERROR("Failed to initialize connector\n");
+ drm_err(bridge->dev, "Failed to initialize connector\n");
return ret;
}
@@ -140,7 +140,7 @@ static void simple_bridge_enable(struct drm_bridge *bridge)
if (sbridge->vdd) {
ret = regulator_enable(sbridge->vdd);
if (ret)
- DRM_ERROR("Failed to enable vdd regulator: %d\n", ret);
+ drm_err(bridge->dev, "Failed to enable vdd regulator: %d\n", ret);
}
gpiod_set_value_cansleep(sbridge->enable, 1);
--
2.43.0
next prev parent reply other threads:[~2026-06-06 19:37 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-06 19:36 [PATCH 0/5] drm/bridge: " Piyush Patle
2026-06-06 19:36 ` Piyush Patle [this message]
2026-06-06 19:36 ` [PATCH 2/5] drm/bridge: ti-tfp410: replace deprecated DRM_INFO macro Piyush Patle
2026-06-06 19:36 ` [PATCH 3/5] drm/bridge: chrontel-ch7033: replace deprecated DRM_ERROR macro Piyush Patle
2026-06-06 19:36 ` [PATCH 4/5] drm/bridge: panel: " Piyush Patle
2026-06-06 19:36 ` [PATCH 5/5] drm/bridge: megachips-stdpxxxx-ge-b850v3-fw: " Piyush Patle
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260606193625.24465-2-piyushpatle228@gmail.com \
--to=piyushpatle228@gmail.com \
--cc=Laurent.pinchart@ideasonboard.com \
--cc=airlied@gmail.com \
--cc=andrzej.hajda@intel.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=jernej.skrabec@gmail.com \
--cc=jonas@kwiboo.se \
--cc=linux-kernel@vger.kernel.org \
--cc=maarten.lankhorst@linux.intel.com \
--cc=mripard@kernel.org \
--cc=neil.armstrong@linaro.org \
--cc=robert.foss@linaro.org \
--cc=tzimmermann@suse.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®