2022-10-16 17:53:23

by Krzysztof Kozlowski

[permalink] [raw]
Subject: [PATCH] dt-bindings: pinctrl: qcom: drop minItems equal to maxItems

If minItems are missing, they are implicitly equal to maxItems.
Dropping redundant minItems simplifies a bit the binding.

Signed-off-by: Krzysztof Kozlowski <[email protected]>
---
.../bindings/pinctrl/qcom,sc7280-lpass-lpi-pinctrl.yaml | 1 -
Documentation/devicetree/bindings/pinctrl/qcom,sm6115-tlmm.yaml | 1 -
2 files changed, 2 deletions(-)

diff --git a/Documentation/devicetree/bindings/pinctrl/qcom,sc7280-lpass-lpi-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/qcom,sc7280-lpass-lpi-pinctrl.yaml
index 8270debd4f25..f7ec8a4f664f 100644
--- a/Documentation/devicetree/bindings/pinctrl/qcom,sc7280-lpass-lpi-pinctrl.yaml
+++ b/Documentation/devicetree/bindings/pinctrl/qcom,sc7280-lpass-lpi-pinctrl.yaml
@@ -23,7 +23,6 @@ properties:
type: boolean

reg:
- minItems: 2
maxItems: 2

gpio-controller: true
diff --git a/Documentation/devicetree/bindings/pinctrl/qcom,sm6115-tlmm.yaml b/Documentation/devicetree/bindings/pinctrl/qcom,sm6115-tlmm.yaml
index 51bae1d3f150..164f24db8b2b 100644
--- a/Documentation/devicetree/bindings/pinctrl/qcom,sm6115-tlmm.yaml
+++ b/Documentation/devicetree/bindings/pinctrl/qcom,sm6115-tlmm.yaml
@@ -18,7 +18,6 @@ properties:
const: qcom,sm6115-tlmm

reg:
- minItems: 3
maxItems: 3

reg-names:
--
2.34.1


2022-10-16 19:53:31

by Iskren Chernev

[permalink] [raw]
Subject: Re: [PATCH] dt-bindings: pinctrl: qcom: drop minItems equal to maxItems

On Sun, Oct 16, 2022 at 8:36 PM Krzysztof Kozlowski
<[email protected]> wrote:
>
> If minItems are missing, they are implicitly equal to maxItems.
> Dropping redundant minItems simplifies a bit the binding.
>
> Signed-off-by: Krzysztof Kozlowski <[email protected]>
Reviewed-by: Iskren Chernev <[email protected]>

> ---
> .../bindings/pinctrl/qcom,sc7280-lpass-lpi-pinctrl.yaml | 1 -
> Documentation/devicetree/bindings/pinctrl/qcom,sm6115-tlmm.yaml | 1 -
> 2 files changed, 2 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/pinctrl/qcom,sc7280-lpass-lpi-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/qcom,sc7280-lpass-lpi-pinctrl.yaml
> index 8270debd4f25..f7ec8a4f664f 100644
> --- a/Documentation/devicetree/bindings/pinctrl/qcom,sc7280-lpass-lpi-pinctrl.yaml
> +++ b/Documentation/devicetree/bindings/pinctrl/qcom,sc7280-lpass-lpi-pinctrl.yaml
> @@ -23,7 +23,6 @@ properties:
> type: boolean
>
> reg:
> - minItems: 2
> maxItems: 2
>
> gpio-controller: true
> diff --git a/Documentation/devicetree/bindings/pinctrl/qcom,sm6115-tlmm.yaml b/Documentation/devicetree/bindings/pinctrl/qcom,sm6115-tlmm.yaml
> index 51bae1d3f150..164f24db8b2b 100644
> --- a/Documentation/devicetree/bindings/pinctrl/qcom,sm6115-tlmm.yaml
> +++ b/Documentation/devicetree/bindings/pinctrl/qcom,sm6115-tlmm.yaml
> @@ -18,7 +18,6 @@ properties:
> const: qcom,sm6115-tlmm
>
> reg:
> - minItems: 3
> maxItems: 3
>
> reg-names:
> --
> 2.34.1
>

2022-10-17 18:47:00

by Rob Herring

[permalink] [raw]
Subject: Re: [PATCH] dt-bindings: pinctrl: qcom: drop minItems equal to maxItems

On Sun, 16 Oct 2022 13:36:25 -0400, Krzysztof Kozlowski wrote:
> If minItems are missing, they are implicitly equal to maxItems.
> Dropping redundant minItems simplifies a bit the binding.
>
> Signed-off-by: Krzysztof Kozlowski <[email protected]>
> ---
> .../bindings/pinctrl/qcom,sc7280-lpass-lpi-pinctrl.yaml | 1 -
> Documentation/devicetree/bindings/pinctrl/qcom,sm6115-tlmm.yaml | 1 -
> 2 files changed, 2 deletions(-)
>

Acked-by: Rob Herring <[email protected]>

2022-10-19 15:07:02

by Krzysztof Kozlowski

[permalink] [raw]
Subject: Re: [PATCH] dt-bindings: pinctrl: qcom: drop minItems equal to maxItems

On Sun, 16 Oct 2022 13:36:25 -0400, Krzysztof Kozlowski wrote:
> If minItems are missing, they are implicitly equal to maxItems.
> Dropping redundant minItems simplifies a bit the binding.
>
>

Applied, thanks!

[1/1] dt-bindings: pinctrl: qcom: drop minItems equal to maxItems
https://git.kernel.org/krzk/linux-dt/c/c3da325b8fbe809af1ceb14d531f55b5b518a685

Best regards,
--
Krzysztof Kozlowski <[email protected]>