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

From: Krzysztof Kozlowski

Date: Thu Dec 04 2025 - 10:32:03 EST


On 04/12/2025 14:21, 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.
>
> Signed-off-by: Akhil P Oommen <akhilpo@xxxxxxxxxxxxxxxx>
> ---
> .../devicetree/bindings/display/msm/gpu.yaml | 56 ++++++++++++++--------
> 1 file changed, 36 insertions(+), 20 deletions(-)
>


Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@xxxxxxxxxxxxxxxx>

Best regards,
Krzysztof