Re: [PATCH v5 2/8] dt-bindings: display/msm: gpu: Simplify conditional schema logic

From: Krzysztof Kozlowski
Date: Sat Dec 27 2025 - 06:06:40 EST


On Fri, Dec 26, 2025 at 11:59:35PM +0530, Akhil P Oommen wrote:
> JSON Schema conditionals can become complex and error-prone when combined
> with regex patterns. To improve readability and maintainability, replace
> nested if-else blocks with a flattened structure using explicit enums.
>
> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@xxxxxxxxxxxxxxxx>
> Signed-off-by: Akhil P Oommen <akhilpo@xxxxxxxxxxxxxxxx>
> ---
> .../devicetree/bindings/display/msm/gpu.yaml | 56 ++++++++++++++--------
> 1 file changed, 36 insertions(+), 20 deletions(-)

BTW, this will conflict with my series sent now:
20251227110504.36732-3-krzysztof.kozlowski@xxxxxxxxxxxxxxxx

so if my patch gets in earlier, you need to rebase in
non-blind/non-obvious way.

Best regards,
Krzysztof