Commit 2a46a935 authored by Kory Maincent (TI)'s avatar Kory Maincent (TI) Committed by Luca Ceresoli
Browse files

drm/bridge: tda998x: Use __be32 for audio port OF property pointer



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: 7e567624 ("drm/i2c: tda998x: Register ASoC hdmi-codec and add audio DT binding")
Cc: stable@vger.kernel.org
Signed-off-by: default avatarKory Maincent (TI) <kory.maincent@bootlin.com>
Reviewed-by: default avatarRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Link: https://patch.msgid.link/20260428090457.121894-1-kory.maincent@bootlin.com


Signed-off-by: default avatarLuca Ceresoli <luca.ceresoli@bootlin.com>
parent c28c22c8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;