[1/2] dt-bindings: iio: adc: qcom,spmi-vadc: simplify compatible enum

Message ID 20221027143411.277980-1-krzysztof.kozlowski@linaro.org
State New
Headers
Series [1/2] dt-bindings: iio: adc: qcom,spmi-vadc: simplify compatible enum |

Commit Message

Krzysztof Kozlowski Oct. 27, 2022, 2:34 p.m. UTC
  The second compatible item in oneOf is just an enum, not a list.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
 .../devicetree/bindings/iio/adc/qcom,spmi-vadc.yaml  | 12 +++++-------
 1 file changed, 5 insertions(+), 7 deletions(-)
  

Comments

Rob Herring Oct. 31, 2022, 4:33 p.m. UTC | #1
On Thu, 27 Oct 2022 10:34:10 -0400, Krzysztof Kozlowski wrote:
> The second compatible item in oneOf is just an enum, not a list.
> 
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> ---
>  .../devicetree/bindings/iio/adc/qcom,spmi-vadc.yaml  | 12 +++++-------
>  1 file changed, 5 insertions(+), 7 deletions(-)
> 

Acked-by: Rob Herring <robh@kernel.org>
  
Jonathan Cameron Nov. 6, 2022, 11:58 a.m. UTC | #2
On Mon, 31 Oct 2022 11:33:47 -0500
Rob Herring <robh@kernel.org> wrote:

> On Thu, 27 Oct 2022 10:34:10 -0400, Krzysztof Kozlowski wrote:
> > The second compatible item in oneOf is just an enum, not a list.
> > 
> > Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> > ---
> >  .../devicetree/bindings/iio/adc/qcom,spmi-vadc.yaml  | 12 +++++-------
> >  1 file changed, 5 insertions(+), 7 deletions(-)
> >   
> 
> Acked-by: Rob Herring <robh@kernel.org>

Series applied to the togreg branch of iio.git.
Initially pushed out as testing to let 0-day poke at the whole tree before
I make a mess of linux-next.

Thanks,

Jonathan
  
Bjorn Andersson Dec. 6, 2022, 6:19 p.m. UTC | #3
On Thu, 27 Oct 2022 10:34:10 -0400, Krzysztof Kozlowski wrote:
> The second compatible item in oneOf is just an enum, not a list.
> 
> 

Applied, thanks!

[1/2] dt-bindings: iio: adc: qcom,spmi-vadc: simplify compatible enum
      (no commit info)
[2/2] dt-bindings: iio: adc: qcom,spmi-vadc: extend example
      commit: 74e903461b178faa5d0873254b77ee18fca5d059

Best regards,
  

Patch

diff --git a/Documentation/devicetree/bindings/iio/adc/qcom,spmi-vadc.yaml b/Documentation/devicetree/bindings/iio/adc/qcom,spmi-vadc.yaml
index 8bac0c4120dd..a848df37db06 100644
--- a/Documentation/devicetree/bindings/iio/adc/qcom,spmi-vadc.yaml
+++ b/Documentation/devicetree/bindings/iio/adc/qcom,spmi-vadc.yaml
@@ -22,13 +22,11 @@  properties:
       - items:
           - const: qcom,pms405-adc
           - const: qcom,spmi-adc-rev2
-
-      - items:
-          - enum:
-              - qcom,spmi-vadc
-              - qcom,spmi-adc5
-              - qcom,spmi-adc-rev2
-              - qcom,spmi-adc7
+      - enum:
+          - qcom,spmi-vadc
+          - qcom,spmi-adc5
+          - qcom,spmi-adc-rev2
+          - qcom,spmi-adc7
 
   reg:
     description: VADC base address in the SPMI PMIC register map