Skip to contentSkip to conversation

media: dt-bindings: media: renesas,drif: Fix a dt_binding_check warning

PATCH In review Zhen Lei 2 participants 3 messages May 20, 2021 – Jun 4, 2021

Subsystems (3)
lore
Share & tools
lore

Zhen Lei

author
#0 lore raw

PATCH 1/1 media: dt-bindings: media: renesas,drif: Fix a dt_binding_check warning

The value of the property 'clock-names' is a constant string, so the 'maxItems: 1' is not needed, should be removed. Otherwise, the following warning is reported:
properties:clock-names:maxItems: False schema does not allow 1 ignoring, error in schema: properties: clock-names: maxItems
warning: no schema found in file: xxx/bindings/media/renesas,drif.yaml

---
 Documentation/devicetree/bindings/media/renesas,drif.yaml | 1 -
 1 file changed, 1 deletion(-)
Documentation/devicetree/bindings/media/renesas,drif.yaml +0 -1
index f1bdaeab4053..b7f07062922f 100644
@@ -67,7 +67,6 @@ properties:
     maxItems: 1
 
   clock-names:
-    maxItems: 1
     items:
       - const: fck
 
Signature · 1 line
2.21.1
#1 lore raw

Hi all:
Can someone review this patch?

Quoted 25 lines · Zhen Lei

The value of the property 'clock-names' is a constant string, so the 'maxItems: 1' is not needed, should be removed. Otherwise, the following warning is reported:
properties:clock-names:maxItems: False schema does not allow 1 ignoring, error in schema: properties: clock-names: maxItems
warning: no schema found in file: xxx/bindings/media/renesas,drif.yaml

---
 Documentation/devicetree/bindings/media/renesas,drif.yaml | 1 -
 1 file changed, 1 deletion(-)
Documentation/devicetree/bindings/media/renesas,drif.yaml +0 -1
index f1bdaeab4053..b7f07062922f 100644
@@ -67,7 +67,6 @@ properties:
     maxItems: 1
 
   clock-names:
-    maxItems: 1
     items:
       - const: fck
 
maintainer
#2 lore raw
In reply to Zhen Lei

Hi Zhen,

Thanks for your patch!

Quoted 11 lines

From: Zhen Lei <[email protected]>
Sent: 20 May 2021 12:50
Subject: [PATCH 1/1] media: dt-bindings: media: renesas,drif: Fix a dt_binding_check warning

The value of the property 'clock-names' is a constant string, so the 'maxItems: 1' is not needed, should be removed. Otherwise, the following warning is reported:
properties:clock-names:maxItems: False schema does not allow 1 ignoring, error in schema: properties: clock-names: maxItems
warning: no schema found in file: xxx/bindings/media/renesas,drif.yaml

A similar fix was sent and accepted a while ago, please see:
https://lkml.org/lkml/2021/4/8/1329

Best regards,
Fab

Quoted 22 lines
---
 Documentation/devicetree/bindings/media/renesas,drif.yaml | 1 -
 1 file changed, 1 deletion(-)
Documentation/devicetree/bindings/media/renesas,drif.yaml +0 -2
index f1bdaeab4053..b7f07062922f 100644
@@ -67,7 +67,6 @@ properties:
     maxItems: 1
 
   clock-names:
-    maxItems: 1
     items:
       - const: fck
 
--

2.21.1