diff mbox series

[1/8] drm/bridge: it66121: Use dev replace ctx->dev in the it66121_probe()

Message ID 20231114150130.497915-2-sui.jingfeng@linux.dev (mailing list archive)
State New, archived
Headers show
Series Allow link the it66121 display bridge driver as a lib | expand

Commit Message

Sui Jingfeng Nov. 14, 2023, 3:01 p.m. UTC
From: Sui Jingfeng <suijingfeng@loongson.cn>

As the value of 'ctx->dev' has already been cached to the local variable
'dev', so keep the usage consistent. Just trivial cleanup, no functional
change.

Signed-off-by: Sui Jingfeng <suijingfeng@loongson.cn>
---
 drivers/gpu/drm/bridge/ite-it66121.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

Comments

Dmitry Baryshkov Nov. 14, 2023, 4:01 p.m. UTC | #1
On Tue, 14 Nov 2023 at 17:09, Sui Jingfeng <sui.jingfeng@linux.dev> wrote:
>
> From: Sui Jingfeng <suijingfeng@loongson.cn>
>
> As the value of 'ctx->dev' has already been cached to the local variable
> 'dev', so keep the usage consistent. Just trivial cleanup, no functional
> change.
>
> Signed-off-by: Sui Jingfeng <suijingfeng@loongson.cn>

Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
diff mbox series

Patch

diff --git a/drivers/gpu/drm/bridge/ite-it66121.c b/drivers/gpu/drm/bridge/ite-it66121.c
index 1cf3fb1f13dc..6e5c10cfa0bc 100644
--- a/drivers/gpu/drm/bridge/ite-it66121.c
+++ b/drivers/gpu/drm/bridge/ite-it66121.c
@@ -1536,20 +1536,20 @@  static int it66121_probe(struct i2c_client *client)
 
 	ep = of_graph_get_remote_node(dev->of_node, 1, -1);
 	if (!ep) {
-		dev_err(ctx->dev, "The endpoint is unconnected\n");
+		dev_err(dev, "The endpoint is unconnected\n");
 		return -EINVAL;
 	}
 
 	if (!of_device_is_available(ep)) {
 		of_node_put(ep);
-		dev_err(ctx->dev, "The remote device is disabled\n");
+		dev_err(dev, "The remote device is disabled\n");
 		return -ENODEV;
 	}
 
 	ctx->next_bridge = of_drm_find_bridge(ep);
 	of_node_put(ep);
 	if (!ctx->next_bridge) {
-		dev_dbg(ctx->dev, "Next bridge not found, deferring probe\n");
+		dev_dbg(dev, "Next bridge not found, deferring probe\n");
 		return -EPROBE_DEFER;
 	}
 
@@ -1599,7 +1599,7 @@  static int it66121_probe(struct i2c_client *client)
 
 	drm_bridge_add(&ctx->bridge);
 
-	dev_info(ctx->dev, "IT66121 revision %d probed\n", revision_id);
+	dev_info(dev, "IT66121 revision %d probed\n", revision_id);
 
 	return 0;
 }