Re: [PATCH] drm/bridge: tda998x: Use __be32 for audio port OF property pointer

From: Luca Ceresoli

Date: Fri Apr 17 2026 - 12:24:19 EST


On Fri Apr 17, 2026 at 5:55 PM CEST, Kory Maincent wrote:
> From: "Kory Maincent (TI)" <kory.maincent@xxxxxxxxxxx>
>
> of_get_property() returns a pointer to big-endian (__be32) data, but

Where is this stated? of_get_property() is declared as:

| extern const void *of_get_property(const struct device_node *node,
| const char *name,
| int *lenp);
(https://elixir.bootlin.com/linux/v7.0/source/include/linux/of.h#L365-L367)

I don't see __be32 mentioned there.

> 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")
> Reported-by: kernel test robot <lkp@xxxxxxxxx>
> Closes: https://lore.kernel.org/oe-kbuild-all/202604172257.Imo6GOH9-lkp@xxxxxxxxx/

Wrong link?

Luca

--
Luca Ceresoli, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com