]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/bridge: tc358764: Fix debug print parameter order
authorMarek Vasut <marex@denx.de>
Thu, 15 Jun 2023 15:28:17 +0000 (17:28 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 Sep 2023 07:42:35 +0000 (09:42 +0200)
[ Upstream commit 7f947be02aab5b154427cb5b0fffe858fc387b02 ]

The debug print parameters were swapped in the output and they were
printed as decimal values, both the hardware address and the value.
Update the debug print to print the parameters in correct order, and
use hexadecimal print for both address and value.

Fixes: f38b7cca6d0e ("drm/bridge: tc358764: Add DSI to LVDS bridge driver")
Signed-off-by: Marek Vasut <marex@denx.de>
Reviewed-by: Robert Foss <rfoss@kernel.org>
Signed-off-by: Robert Foss <rfoss@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20230615152817.359420-1-marex@denx.de
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/bridge/tc358764.c

index 53259c12d7778bd08cc39b3638aebe044cc292c5..e0f583a88789dbbd580c2fb7dc2433170fe46c0c 100644 (file)
@@ -176,7 +176,7 @@ static void tc358764_read(struct tc358764 *ctx, u16 addr, u32 *val)
        if (ret >= 0)
                le32_to_cpus(val);
 
-       dev_dbg(ctx->dev, "read: %d, addr: %d\n", addr, *val);
+       dev_dbg(ctx->dev, "read: addr=0x%04x data=0x%08x\n", addr, *val);
 }
 
 static void tc358764_write(struct tc358764 *ctx, u16 addr, u32 val)