On Tue, 2026-07-14 at 13:43 +0200, AngeloGioacchino Del Regno wrote: > Both mtk_ddp_comp and mtk_drm_drv are performing similar checks > to distinguish components that have an external driver from ones > that don't - with the exception of mtk_ddp_comp also checking if > the component is related to a backlight driver. > > Create helper functions in the main component management driver > mtk_ddp_comp, one to check if the currently checked component is > internal/simple, and one (static, internal to mtk_ddp_comp only) > to check if it is a backlight related one. > > Since the amount of internal/simple components is lower than the > amount of ones having a specific driver, and since it is expected > that most of (if not all) of any new hardware support will need a > specific driver as well, the helpers are doing an inverted check > compared to what the code was doing before, as both mtk_ddp_comp > and mtk_drm_drv were checking for external component explicitly, > while now they're doing the same, but checking if NOT internal. > > Also, while at it, for the OVL_ADAPTOR components case, instead > of checking for MTK_DISP_OVL_ADAPTOR, call the already provided > mtk_ovl_adaptor_is_comp_present() function to check for this type > of component.
Reviewed-by: CK Hu <[email protected]> > > Signed-off-by: AngeloGioacchino Del Regno > <[email protected]> > ---
