Skip to contentSkip to conversation

nvmem: dt-bindings: Fix the error of dt-bindings check

PATCH In review Vincent Shih 2 participants 2 messages Feb 25, 2022

Subsystems (3)
lore
Share & tools
lore

Vincent Shih

author maintainer
#0 lore raw

PATCH 1/1 nvmem: dt-bindings: Fix the error of dt-bindings check

1. Remove the unnecessary header file for dt-binding check
2. Replace OTPRX with 0x15 since it is not defined here.
3. Modify the name of the node of the clock driver.

Fixes e15d2e3fd7("nvmem: Fix the compilation error for SP7021")
---
 Documentation/devicetree/bindings/nvmem/sunplus,sp7021-ocotp.yaml | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
Documentation/devicetree/bindings/nvmem/sunplus,sp7021-ocotp.yaml +1 -3
index 4b28f37..a7644eb 100644
@@ -60,13 +60,11 @@ unevaluatedProperties: false
 
 examples:
   - |
-    #include <dt-bindings/clock/sp-sp7021.h>
-
     otp: otp@9c00af00 {
         compatible = "sunplus,sp7021-ocotp";
         reg = <0x9c00af00 0x34>, <0x9c00af80 0x58>;
         reg-names = "hb_gpio", "otprx";
-        clocks = <&clks OTPRX>;
+        clocks = <&clkc 0x15>;
 
         #address-cells = <1>;
         #size-cells = <1>;
Signature · 1 line
2.7.4
maintainer Acked-by on v1 1/1
#1 lore raw
Quoted 4 lines · Vincent Shih

1. Remove the unnecessary header file for dt-binding check
2. Replace OTPRX with 0x15 since it is not defined here.
3. Modify the name of the node of the clock driver.

Quoted 8 lines
Fixes e15d2e3fd7("nvmem: Fix the compilation error for SP7021")
---
 Documentation/devicetree/bindings/nvmem/sunplus,sp7021-ocotp.yaml | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)