Re: [PATCH] drm/bridge: tda998x: Return NULL instead of 0 in tda998x_edid_read()
From: Luca Ceresoli
Date: Fri Apr 17 2026 - 12:16:14 EST
On Fri Apr 17, 2026 at 5:54 PM CEST, Kory Maincent wrote:
> From: "Kory Maincent (TI)" <kory.maincent@xxxxxxxxxxx>
>
> tda998x_edid_read() returns a const struct drm_edid pointer, but when
> tda998x_edid_delay_wait() fails (process killed while waiting for the
> HPD timeout), the integer literal 0 is returned instead of NULL,
> triggering a sparse warning: "Using plain integer as NULL pointer"
>
> Replace 0 with NULL to fix the sparse warning.
>
> Fixes: c76a8be4feec ("drm/bridge: tda998x: Add support for DRM_BRIDGE_ATTACH_NO_CONNECTOR")
> Reported-by: kernel test robot <lkp@xxxxxxxxx>
> Closes: https://lore.kernel.org/oe-kbuild-all/202604172257.Imo6GOH9-lkp@xxxxxxxxx/
> Signed-off-by: Kory Maincent (TI) <kory.maincent@xxxxxxxxxxx>
Reviewed-by: Luca Ceresoli <luca.ceresoli@xxxxxxxxxxx>
--
Luca Ceresoli, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com