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

drm/tilcdc: Fix type mismatch



cpu_to_be32() returns a __be32 big-endian value, but the compound literals
passed to tilcdc_panel_update_prop() were typed as u32. This causes a
sparse type mismatch warning. Fix it by using __be32 as the compound
literal type to match the return type of cpu_to_be32().

Reported-by: default avatarkernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202602200130.LjofC7YE-lkp@intel.com/


Fixes: 0ff223d9 ("drm/tilcdc: Convert legacy panel binding via DT overlay at boot time")
Signed-off-by: default avatarKory Maincent (TI) <kory.maincent@bootlin.com>
Reviewed-by: default avatarLuca Ceresoli <luca.ceresoli@bootlin.com>
Link: https://patch.msgid.link/20260305163907.717719-1-kory.maincent@bootlin.com


Signed-off-by: default avatarLuca Ceresoli <luca.ceresoli@bootlin.com>
parent 1d3864cf
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -105,14 +105,14 @@ static int __init tilcdc_panel_copy_props(struct device_node *old_panel,

	if (!invert_pxl_clk) {
		ret = tilcdc_panel_update_prop(&ocs, new_timing, "pixelclk-active",
					       &(u32){cpu_to_be32(1)}, sizeof(u32));
					       &(__be32){cpu_to_be32(1)}, sizeof(__be32));
		if (ret)
			goto destroy_ocs;
	}

	if (!sync_edge) {
		ret = tilcdc_panel_update_prop(&ocs, new_timing, "syncclk-active",
					       &(u32){cpu_to_be32(1)}, sizeof(u32));
					       &(__be32){cpu_to_be32(1)}, sizeof(__be32));
		if (ret)
			goto destroy_ocs;
	}