Message ID | 20220825113334.196908-3-krzysztof.kozlowski@linaro.org |
---|---|
State | Accepted |
Commit | 4bafca831386bd3b4b059f583b471670c19acf6a |
Headers | show |
Series | [1/5] dt-bindings: socionext,uniphier-system-cache: drop minItems equal to maxItems | expand |
>-----Original Message----- >From: Krzysztof Kozlowski [mailto:krzysztof.kozlowski@linaro.org] >Sent: Thursday, August 25, 2022 5:04 PM >To: Rob Herring <robh+dt@kernel.org>; Krzysztof Kozlowski ><krzysztof.kozlowski+dt@linaro.org>; Kunihiko Hayashi ><hayashi.kunihiko@socionext.com>; Masami Hiramatsu ><mhiramat@kernel.org>; Damien Le Moal ><damien.lemoal@opensource.wdc.com>; Michael Turquette ><mturquette@baylibre.com>; Stephen Boyd <sboyd@kernel.org>; Geert >Uytterhoeven <geert+renesas@glider.be>; Sylwester Nawrocki ><s.nawrocki@samsung.com>; Tomasz Figa <tomasz.figa@gmail.com>; >Chanwoo Choi <cw00.choi@samsung.com>; Alim Akhtar ><alim.akhtar@samsung.com>; Vladimir Zapolskiy <vz@mleia.com>; Herbert >Xu <herbert@gondor.apana.org.au>; David S. Miller ><davem@davemloft.net>; Andrzej Hajda <andrzej.hajda@intel.com>; Neil >Armstrong <neil.armstrong@linaro.org>; Robert Foss ><robert.foss@linaro.org>; Laurent Pinchart ><Laurent.pinchart@ideasonboard.com>; Jonas Karlman <jonas@kwiboo.se>; >Jernej Skrabec <jernej.skrabec@gmail.com>; David Airlie <airlied@linux.ie>; >Daniel Vetter <daniel@ffwll.ch>; Rob Clark <robdclark@gmail.com>; Abhinav >Kumar <quic_abhinavk@quicinc.com>; Dmitry Baryshkov ><dmitry.baryshkov@linaro.org>; Sean Paul <sean@poorly.run>; Inki Dae ><inki.dae@samsung.com>; Seung-Woo Kim <sw0312.kim@samsung.com>; >Kyungmin Park <kyungmin.park@samsung.com>; Thierry Reding ><thierry.reding@gmail.com>; Jonathan Hunter <jonathanh@nvidia.com>; >Masahiro Yamada <yamada.masahiro@socionext.com>; Florian Fainelli ><f.fainelli@gmail.com>; Linus Walleij <linus.walleij@linaro.org>; Andre >Przywara <andre.przywara@arm.com>; Kuninori Morimoto ><kuninori.morimoto.gx@renesas.com>; Yoshihiro Shimoda ><yoshihiro.shimoda.uh@renesas.com>; Marek Vasut <marex@denx.de>; >Krishna Manikandan <quic_mkrishn@quicinc.com>; >devicetree@vger.kernel.org; linux-arm-kernel@lists.infradead.org; linux- >kernel@vger.kernel.org; linux-ide@vger.kernel.org; linux- >clk@vger.kernel.org; linux-renesas-soc@vger.kernel.org; linux-samsung- >soc@vger.kernel.org; linux-crypto@vger.kernel.org; dri- >devel@lists.freedesktop.org; linux-arm-msm@vger.kernel.org; >freedreno@lists.freedesktop.org; linux-tegra@vger.kernel.org >Cc: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> >Subject: [PATCH 3/5] dt-bindings: clock: drop minItems equal to maxItems > >minItems, if missing, are implicitly equal to maxItems, so drop redundant >piece to reduce size of code. > >Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> >--- Reviewed-by: Alim Akhtar <alim.akhtar@samsung.com> > Documentation/devicetree/bindings/clock/cirrus,cs2000-cp.yaml | 1 - > .../devicetree/bindings/clock/renesas,rcar-usb2-clock-sel.yaml | 2 -- > Documentation/devicetree/bindings/clock/samsung,s2mps11.yaml | 1 - > 3 files changed, 4 deletions(-) > >diff --git a/Documentation/devicetree/bindings/clock/cirrus,cs2000-cp.yaml >b/Documentation/devicetree/bindings/clock/cirrus,cs2000-cp.yaml >index 0abd6ba82dfd..82836086cac1 100644 >--- a/Documentation/devicetree/bindings/clock/cirrus,cs2000-cp.yaml >+++ b/Documentation/devicetree/bindings/clock/cirrus,cs2000-cp.yaml >@@ -23,7 +23,6 @@ properties: > clocks: > description: > Common clock binding for CLK_IN, XTI/REF_CLK >- minItems: 2 > maxItems: 2 > > clock-names: >diff --git a/Documentation/devicetree/bindings/clock/renesas,rcar-usb2- >clock-sel.yaml b/Documentation/devicetree/bindings/clock/renesas,rcar- >usb2-clock-sel.yaml >index 6eaabb4d82ec..81f09df7147e 100644 >--- a/Documentation/devicetree/bindings/clock/renesas,rcar-usb2-clock- >sel.yaml >+++ b/Documentation/devicetree/bindings/clock/renesas,rcar-usb2-clock-se >+++ l.yaml >@@ -47,7 +47,6 @@ properties: > maxItems: 1 > > clocks: >- minItems: 4 > maxItems: 4 > > clock-names: >@@ -64,7 +63,6 @@ properties: > maxItems: 1 > > resets: >- minItems: 2 > maxItems: 2 > > reset-names: >diff --git a/Documentation/devicetree/bindings/clock/samsung,s2mps11.yaml >b/Documentation/devicetree/bindings/clock/samsung,s2mps11.yaml >index 9248bfc16d48..d5296e6053a1 100644 >--- a/Documentation/devicetree/bindings/clock/samsung,s2mps11.yaml >+++ b/Documentation/devicetree/bindings/clock/samsung,s2mps11.yaml >@@ -34,7 +34,6 @@ properties: > const: 1 > > clock-output-names: >- minItems: 3 > maxItems: 3 > description: Names for AP, CP and BT clocks. > >-- >2.34.1
Hi Krzysztof, Thank you for the patch. On Thu, Aug 25, 2022 at 02:33:32PM +0300, Krzysztof Kozlowski wrote: > minItems, if missing, are implicitly equal to maxItems, so drop > redundant piece to reduce size of code. > > Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Reviewed-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> > --- > Documentation/devicetree/bindings/clock/cirrus,cs2000-cp.yaml | 1 - > .../devicetree/bindings/clock/renesas,rcar-usb2-clock-sel.yaml | 2 -- > Documentation/devicetree/bindings/clock/samsung,s2mps11.yaml | 1 - > 3 files changed, 4 deletions(-) > > diff --git a/Documentation/devicetree/bindings/clock/cirrus,cs2000-cp.yaml b/Documentation/devicetree/bindings/clock/cirrus,cs2000-cp.yaml > index 0abd6ba82dfd..82836086cac1 100644 > --- a/Documentation/devicetree/bindings/clock/cirrus,cs2000-cp.yaml > +++ b/Documentation/devicetree/bindings/clock/cirrus,cs2000-cp.yaml > @@ -23,7 +23,6 @@ properties: > clocks: > description: > Common clock binding for CLK_IN, XTI/REF_CLK > - minItems: 2 > maxItems: 2 > > clock-names: > diff --git a/Documentation/devicetree/bindings/clock/renesas,rcar-usb2-clock-sel.yaml b/Documentation/devicetree/bindings/clock/renesas,rcar-usb2-clock-sel.yaml > index 6eaabb4d82ec..81f09df7147e 100644 > --- a/Documentation/devicetree/bindings/clock/renesas,rcar-usb2-clock-sel.yaml > +++ b/Documentation/devicetree/bindings/clock/renesas,rcar-usb2-clock-sel.yaml > @@ -47,7 +47,6 @@ properties: > maxItems: 1 > > clocks: > - minItems: 4 > maxItems: 4 > > clock-names: > @@ -64,7 +63,6 @@ properties: > maxItems: 1 > > resets: > - minItems: 2 > maxItems: 2 > > reset-names: > diff --git a/Documentation/devicetree/bindings/clock/samsung,s2mps11.yaml b/Documentation/devicetree/bindings/clock/samsung,s2mps11.yaml > index 9248bfc16d48..d5296e6053a1 100644 > --- a/Documentation/devicetree/bindings/clock/samsung,s2mps11.yaml > +++ b/Documentation/devicetree/bindings/clock/samsung,s2mps11.yaml > @@ -34,7 +34,6 @@ properties: > const: 1 > > clock-output-names: > - minItems: 3 > maxItems: 3 > description: Names for AP, CP and BT clocks. >
On Thu, 25 Aug 2022 14:33:32 +0300, Krzysztof Kozlowski wrote: > minItems, if missing, are implicitly equal to maxItems, so drop > redundant piece to reduce size of code. > > Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> > --- > Documentation/devicetree/bindings/clock/cirrus,cs2000-cp.yaml | 1 - > .../devicetree/bindings/clock/renesas,rcar-usb2-clock-sel.yaml | 2 -- > Documentation/devicetree/bindings/clock/samsung,s2mps11.yaml | 1 - > 3 files changed, 4 deletions(-) > Acked-by: Rob Herring <robh@kernel.org>
diff --git a/Documentation/devicetree/bindings/clock/cirrus,cs2000-cp.yaml b/Documentation/devicetree/bindings/clock/cirrus,cs2000-cp.yaml index 0abd6ba82dfd..82836086cac1 100644 --- a/Documentation/devicetree/bindings/clock/cirrus,cs2000-cp.yaml +++ b/Documentation/devicetree/bindings/clock/cirrus,cs2000-cp.yaml @@ -23,7 +23,6 @@ properties: clocks: description: Common clock binding for CLK_IN, XTI/REF_CLK - minItems: 2 maxItems: 2 clock-names: diff --git a/Documentation/devicetree/bindings/clock/renesas,rcar-usb2-clock-sel.yaml b/Documentation/devicetree/bindings/clock/renesas,rcar-usb2-clock-sel.yaml index 6eaabb4d82ec..81f09df7147e 100644 --- a/Documentation/devicetree/bindings/clock/renesas,rcar-usb2-clock-sel.yaml +++ b/Documentation/devicetree/bindings/clock/renesas,rcar-usb2-clock-sel.yaml @@ -47,7 +47,6 @@ properties: maxItems: 1 clocks: - minItems: 4 maxItems: 4 clock-names: @@ -64,7 +63,6 @@ properties: maxItems: 1 resets: - minItems: 2 maxItems: 2 reset-names: diff --git a/Documentation/devicetree/bindings/clock/samsung,s2mps11.yaml b/Documentation/devicetree/bindings/clock/samsung,s2mps11.yaml index 9248bfc16d48..d5296e6053a1 100644 --- a/Documentation/devicetree/bindings/clock/samsung,s2mps11.yaml +++ b/Documentation/devicetree/bindings/clock/samsung,s2mps11.yaml @@ -34,7 +34,6 @@ properties: const: 1 clock-output-names: - minItems: 3 maxItems: 3 description: Names for AP, CP and BT clocks.
minItems, if missing, are implicitly equal to maxItems, so drop redundant piece to reduce size of code. Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> --- Documentation/devicetree/bindings/clock/cirrus,cs2000-cp.yaml | 1 - .../devicetree/bindings/clock/renesas,rcar-usb2-clock-sel.yaml | 2 -- Documentation/devicetree/bindings/clock/samsung,s2mps11.yaml | 1 - 3 files changed, 4 deletions(-)