diff mbox series

[next,v3,02/16] dt-bindings: usb: mediatek: fix yamllint check warning

Message ID 20210201070016.41721-2-chunfeng.yun@mediatek.com
State New
Headers show
Series None | expand

Commit Message

Chunfeng Yun (云春峰) Feb. 1, 2021, 7 a.m. UTC
Fix warning: "too many spaces inside brackets"

Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>

---
v2~v3: no changes
---
 .../devicetree/bindings/usb/mediatek,mtk-xhci.yaml          | 2 +-
 Documentation/devicetree/bindings/usb/mediatek,mtu3.yaml    | 6 +++---
 Documentation/devicetree/bindings/usb/mediatek,musb.yaml    | 4 ++--
 3 files changed, 6 insertions(+), 6 deletions(-)

-- 
2.18.0

Comments

Rob Herring (Arm) Feb. 9, 2021, 8:46 p.m. UTC | #1
On Mon, Feb 01, 2021 at 03:00:02PM +0800, Chunfeng Yun wrote:
> Fix warning: "too many spaces inside brackets"
> 
> Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
> ---
> v2~v3: no changes
> ---
>  .../devicetree/bindings/usb/mediatek,mtk-xhci.yaml          | 2 +-
>  Documentation/devicetree/bindings/usb/mediatek,mtu3.yaml    | 6 +++---
>  Documentation/devicetree/bindings/usb/mediatek,musb.yaml    | 4 ++--
>  3 files changed, 6 insertions(+), 6 deletions(-)
> 
> diff --git a/Documentation/devicetree/bindings/usb/mediatek,mtk-xhci.yaml b/Documentation/devicetree/bindings/usb/mediatek,mtk-xhci.yaml
> index 38b1fe18aa79..a3817f3af59d 100644
> --- a/Documentation/devicetree/bindings/usb/mediatek,mtk-xhci.yaml
> +++ b/Documentation/devicetree/bindings/usb/mediatek,mtk-xhci.yaml
> @@ -139,7 +139,7 @@ patternProperties:
>      description: The hard wired USB devices.
>  
>  dependencies:
> -  wakeup-source: [ 'mediatek,syscon-wakeup' ]
> +  wakeup-source: ['mediatek,syscon-wakeup']

We allow either 0 or 1 space, so this should be fine. Confused...

>  
>  required:
>    - compatible
> diff --git a/Documentation/devicetree/bindings/usb/mediatek,mtu3.yaml b/Documentation/devicetree/bindings/usb/mediatek,mtu3.yaml
> index f5c04b9d2de9..66d78f534722 100644
> --- a/Documentation/devicetree/bindings/usb/mediatek,mtu3.yaml
> +++ b/Documentation/devicetree/bindings/usb/mediatek,mtu3.yaml
> @@ -172,9 +172,9 @@ patternProperties:
>        example if the host mode is enabled.
>  
>  dependencies:
> -  connector: [ 'usb-role-switch' ]
> -  port: [ 'usb-role-switch' ]
> -  wakeup-source: [ 'mediatek,syscon-wakeup' ]
> +  connector: ['usb-role-switch']
> +  port: ['usb-role-switch']
> +  wakeup-source: ['mediatek,syscon-wakeup']
>  
>  required:
>    - compatible
> diff --git a/Documentation/devicetree/bindings/usb/mediatek,musb.yaml b/Documentation/devicetree/bindings/usb/mediatek,musb.yaml
> index 790efe8b6274..a515c9f30b96 100644
> --- a/Documentation/devicetree/bindings/usb/mediatek,musb.yaml
> +++ b/Documentation/devicetree/bindings/usb/mediatek,musb.yaml
> @@ -66,8 +66,8 @@ properties:
>      type: object
>  
>  dependencies:
> -  usb-role-switch: [ 'connector' ]
> -  connector: [ 'usb-role-switch' ]
> +  usb-role-switch: ['connector']
> +  connector: ['usb-role-switch']
>  
>  required:
>    - compatible
> -- 
> 2.18.0
diff mbox series

Patch

diff --git a/Documentation/devicetree/bindings/usb/mediatek,mtk-xhci.yaml b/Documentation/devicetree/bindings/usb/mediatek,mtk-xhci.yaml
index 38b1fe18aa79..a3817f3af59d 100644
--- a/Documentation/devicetree/bindings/usb/mediatek,mtk-xhci.yaml
+++ b/Documentation/devicetree/bindings/usb/mediatek,mtk-xhci.yaml
@@ -139,7 +139,7 @@  patternProperties:
     description: The hard wired USB devices.
 
 dependencies:
-  wakeup-source: [ 'mediatek,syscon-wakeup' ]
+  wakeup-source: ['mediatek,syscon-wakeup']
 
 required:
   - compatible
diff --git a/Documentation/devicetree/bindings/usb/mediatek,mtu3.yaml b/Documentation/devicetree/bindings/usb/mediatek,mtu3.yaml
index f5c04b9d2de9..66d78f534722 100644
--- a/Documentation/devicetree/bindings/usb/mediatek,mtu3.yaml
+++ b/Documentation/devicetree/bindings/usb/mediatek,mtu3.yaml
@@ -172,9 +172,9 @@  patternProperties:
       example if the host mode is enabled.
 
 dependencies:
-  connector: [ 'usb-role-switch' ]
-  port: [ 'usb-role-switch' ]
-  wakeup-source: [ 'mediatek,syscon-wakeup' ]
+  connector: ['usb-role-switch']
+  port: ['usb-role-switch']
+  wakeup-source: ['mediatek,syscon-wakeup']
 
 required:
   - compatible
diff --git a/Documentation/devicetree/bindings/usb/mediatek,musb.yaml b/Documentation/devicetree/bindings/usb/mediatek,musb.yaml
index 790efe8b6274..a515c9f30b96 100644
--- a/Documentation/devicetree/bindings/usb/mediatek,musb.yaml
+++ b/Documentation/devicetree/bindings/usb/mediatek,musb.yaml
@@ -66,8 +66,8 @@  properties:
     type: object
 
 dependencies:
-  usb-role-switch: [ 'connector' ]
-  connector: [ 'usb-role-switch' ]
+  usb-role-switch: ['connector']
+  connector: ['usb-role-switch']
 
 required:
   - compatible