Re: [PATCH] dt-bindings: display/msm/dsi-phy: drop unused allOf clauses

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Jan 13, 2023 at 08:33:51AM +0200, Dmitry Baryshkov wrote:
> Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@xxxxxxxxxx>
> ---
>  .../devicetree/bindings/display/msm/dsi-phy-10nm.yaml          | 3 +--
>  .../devicetree/bindings/display/msm/dsi-phy-14nm.yaml          | 3 +--
>  .../devicetree/bindings/display/msm/dsi-phy-20nm.yaml          | 3 +--
>  .../devicetree/bindings/display/msm/dsi-phy-28nm.yaml          | 3 +--
>  Documentation/devicetree/bindings/display/msm/dsi-phy-7nm.yaml | 3 +--
>  5 files changed, 5 insertions(+), 10 deletions(-)
> 
> diff --git a/Documentation/devicetree/bindings/display/msm/dsi-phy-10nm.yaml b/Documentation/devicetree/bindings/display/msm/dsi-phy-10nm.yaml
> index 3ec466c3ab38..71702151bafa 100644
> --- a/Documentation/devicetree/bindings/display/msm/dsi-phy-10nm.yaml
> +++ b/Documentation/devicetree/bindings/display/msm/dsi-phy-10nm.yaml
> @@ -9,8 +9,7 @@ title: Qualcomm Display DSI 10nm PHY
>  maintainers:
>    - Krishna Manikandan <quic_mkrishn@xxxxxxxxxxx>
>  
> -allOf:
> -  - $ref: dsi-phy-common.yaml#
> +$ref: dsi-phy-common.yaml#

Convention is how it was. Partly this is legacy because earlier versions 
of json-schema required the 'allOf' form or everything in addition to 
the $ref would be ignored. I left these thinking more than 1 $ref here 
might be common. But probably more common is a $ref and if/then schemas 
and I'd somewhat rather keep $ref at the top and if/then schemas at the 
bottom. So maybe this is the right direction.

I don't really care to define one way or the other if we can't enforce 
it in the meta-schema. I don't need more nits to look for in reviews. 
Adding a check (i.e. allOf must have 2 or more entries) would be quite 
invasive and wouldn't allow having 1 entry when we expect a 2nd entry 
soonish.

Rob



[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux