* [PATCH v2] drm/bridge: tda998x: Use __be32 for audio port OF property pointer
@ 2026-04-28 9:04 Kory Maincent
2026-05-04 14:51 ` Luca Ceresoli
0 siblings, 1 reply; 2+ messages in thread
From: Kory Maincent @ 2026-04-28 9:04 UTC (permalink / raw)
To: Jyri Sarha, Russell King, dri-devel, linux-kernel
Cc: Bajjuri Praneeth, Kory Maincent (TI),
stable, thomas.petazzoni, Russell King, Andrzej Hajda,
Neil Armstrong, Robert Foss, Laurent Pinchart, Jonas Karlman,
Jernej Skrabec, Maarten Lankhorst, Maxime Ripard,
Thomas Zimmermann, David Airlie, Simona Vetter
From: "Kory Maincent (TI)" <kory.maincent@bootlin.com>
of_get_property() returns a pointer to big-endian (__be32) data, but
port_data in tda998x_get_audio_ports() was declared as const u32 *,
causing a sparse endianness type mismatch warning. Fix the declaration
to use const __be32 *.
Fixes: 7e567624dc5a4 ("drm/i2c: tda998x: Register ASoC hdmi-codec and add audio DT binding")
Cc: stable@vger.kernel.org
Signed-off-by: Kory Maincent (TI) <kory.maincent@bootlin.com>
Reviewed-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
---
drivers/gpu/drm/bridge/tda998x_drv.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/bridge/tda998x_drv.c b/drivers/gpu/drm/bridge/tda998x_drv.c
index 367a46c057e41..6c427bc75896b 100644
--- a/drivers/gpu/drm/bridge/tda998x_drv.c
+++ b/drivers/gpu/drm/bridge/tda998x_drv.c
@@ -1762,7 +1762,7 @@ static const struct drm_bridge_funcs tda998x_bridge_funcs = {
static int tda998x_get_audio_ports(struct tda998x_priv *priv,
struct device_node *np)
{
- const u32 *port_data;
+ const __be32 *port_data;
u32 size;
int i;
--
2.43.0
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH v2] drm/bridge: tda998x: Use __be32 for audio port OF property pointer
2026-04-28 9:04 [PATCH v2] drm/bridge: tda998x: Use __be32 for audio port OF property pointer Kory Maincent
@ 2026-05-04 14:51 ` Luca Ceresoli
0 siblings, 0 replies; 2+ messages in thread
From: Luca Ceresoli @ 2026-05-04 14:51 UTC (permalink / raw)
To: Jyri Sarha, Russell King, dri-devel, linux-kernel, Kory Maincent
Cc: Bajjuri Praneeth, stable, thomas.petazzoni, Russell King,
Andrzej Hajda, Neil Armstrong, Robert Foss, Laurent Pinchart,
Jonas Karlman, Jernej Skrabec, Maarten Lankhorst, Maxime Ripard,
Thomas Zimmermann, David Airlie, Simona Vetter
On Tue, 28 Apr 2026 11:04:56 +0200, Kory Maincent wrote:
> of_get_property() returns a pointer to big-endian (__be32) data, but
> port_data in tda998x_get_audio_ports() was declared as const u32 *,
> causing a sparse endianness type mismatch warning. Fix the declaration
> to use const __be32 *.
Applied, thanks!
[1/1] drm/bridge: tda998x: Use __be32 for audio port OF property pointer
commit: 2a46a9356ba7b1bdd741c8b41e5374edcd960557
Best regards,
--
Luca Ceresoli <luca.ceresoli@bootlin.com>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-05-04 14:51 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-04-28 9:04 [PATCH v2] drm/bridge: tda998x: Use __be32 for audio port OF property pointer Kory Maincent
2026-05-04 14:51 ` Luca Ceresoli
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®