diff mbox series

[4/5] dt-bindings: crypto: drop minItems equal to maxItems

Message ID 20220825113334.196908-4-krzysztof.kozlowski@linaro.org (mailing list archive)
State Accepted
Commit 1e5154de34073f0f30a16a08527b6d82a2b8105d
Headers show
Series [1/5] dt-bindings: socionext,uniphier-system-cache: drop minItems equal to maxItems | expand

Commit Message

Krzysztof Kozlowski Aug. 25, 2022, 11:33 a.m. UTC
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/crypto/samsung-slimsss.yaml | 1 -
 1 file changed, 1 deletion(-)

Comments

Laurent Pinchart Aug. 25, 2022, 5:01 p.m. UTC | #1
Hi Krzysztof,

Thank you for the patch.

On Thu, Aug 25, 2022 at 02:33:33PM +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/crypto/samsung-slimsss.yaml | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/Documentation/devicetree/bindings/crypto/samsung-slimsss.yaml b/Documentation/devicetree/bindings/crypto/samsung-slimsss.yaml
> index 676950bb7b37..5b31891c97fe 100644
> --- a/Documentation/devicetree/bindings/crypto/samsung-slimsss.yaml
> +++ b/Documentation/devicetree/bindings/crypto/samsung-slimsss.yaml
> @@ -24,7 +24,6 @@ properties:
>      maxItems: 1
>  
>    clocks:
> -    minItems: 2
>      maxItems: 2
>  
>    clock-names:
Alim Akhtar Aug. 25, 2022, 5:02 p.m. UTC | #2
Hi Krzysztof



>-----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 4/5] dt-bindings: crypto: 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/crypto/samsung-slimsss.yaml | 1 -
> 1 file changed, 1 deletion(-)
>
>diff --git a/Documentation/devicetree/bindings/crypto/samsung-slimsss.yaml
>b/Documentation/devicetree/bindings/crypto/samsung-slimsss.yaml
>index 676950bb7b37..5b31891c97fe 100644
>--- a/Documentation/devicetree/bindings/crypto/samsung-slimsss.yaml
>+++ b/Documentation/devicetree/bindings/crypto/samsung-slimsss.yaml
>@@ -24,7 +24,6 @@ properties:
>     maxItems: 1
>
>   clocks:
>-    minItems: 2
>     maxItems: 2
>
>   clock-names:
>--
>2.34.1
Rob Herring (Arm) Aug. 29, 2022, 7:56 p.m. UTC | #3
On Thu, 25 Aug 2022 14:33:33 +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/crypto/samsung-slimsss.yaml | 1 -
>  1 file changed, 1 deletion(-)
> 

Applied, thanks!
diff mbox series

Patch

diff --git a/Documentation/devicetree/bindings/crypto/samsung-slimsss.yaml b/Documentation/devicetree/bindings/crypto/samsung-slimsss.yaml
index 676950bb7b37..5b31891c97fe 100644
--- a/Documentation/devicetree/bindings/crypto/samsung-slimsss.yaml
+++ b/Documentation/devicetree/bindings/crypto/samsung-slimsss.yaml
@@ -24,7 +24,6 @@  properties:
     maxItems: 1
 
   clocks:
-    minItems: 2
     maxItems: 2
 
   clock-names: