Skip to contentSkip to conversation

ASoC: cs35l35: fix typo 'overide' -> 'override'

PATCH Superseded IRRatium 3 participants 5 messages Apr 21

Subsystems (4)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

IRRatium

author
#0 lore raw

PATCH 1/2 ASoC: cs35l35: fix typo 'overide' -> 'override'

Fix typo in property name 'cirrus,classh-bst-overide', should be 'cirrus,classh-bst-override'.

---
 sound/soc/codecs/cs35l35.c | 2 +-

 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/codecs/cs35l35.c +0 -0
index 7a01b1d9f..7d9b42c5a 100644
@@ -1311,7 +1311,7 @@ static int cs35l35_handle_of_data(struct i2c_client *i2c_client,
 

     if (classh_config->classh_algo_enable) { classh_config->classh_bst_override =
-            of_property_read_bool(np, "cirrus,classh-bst-overide"); +            of_property_read_bool(np, "cirrus,classh-bst-override");

         ret = of_property_read_u32(classh,
                 "cirrus,classh-bst-max-limit",

Signature · 1 line
2.53.0
author
#1 lore raw

PATCH 2/2 dt-bindings: sound: cs35l35: fix typo 'overide' -> 'override'

Fix typo in property name 'cirrus,classh-bst-overide', should be 'cirrus,classh-bst-override'.

---
 Documentation/devicetree/bindings/sound/cs35l35.txt | 4 ++--

 1 file changed, 2 insertions(+), 2 deletions(-)
Documentation/devicetree/bindings/sound/cs35l35.txt +0 -0
index e84f30c5c..1d364b3d3 100644
@@ -82,7 +82,7 @@ Optional H/G Algorithm sub-node:

 Optional properties for the "cirrus,classh-internal-algo" Sub-node

   Section 7.29 Class H Control
-  - cirrus,classh-bst-overide : Boolean
+  - cirrus,classh-bst-override : Boolean
   - cirrus,classh-bst-max-limit
   - cirrus,classh-mem-depth

@@ -155,7 +155,7 @@ cs35l35: cs35l35@20 {
     cirrus,shared-boost;

     cirrus,classh-internal-algo {
-        cirrus,classh-bst-overide;
+        cirrus,classh-bst-override;
         cirrus,classh-bst-max-limit = <0x01>;
         cirrus,classh-mem-depth = <0x01>;
         cirrus,classh-release-rate = <0x08>;

Signature · 1 line
2.53.0
#2 lore raw

Re: [PATCH 2/2] dt-bindings: sound: cs35l35: fix typo 'overide' -> 'override'

Quoted 14 lines · IRRatium

Fix typo in property name 'cirrus,classh-bst-overide', should be 'cirrus,classh-bst-override'.

---
  Documentation/devicetree/bindings/sound/cs35l35.txt | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)
Documentation/devicetree/bindings/sound/cs35l35.txt +0 -0
index e84f30c5c..1d364b3d3 100644

Documentation/devicetree/bindings/sound/cs35l35.txt Optional H/G Algorithm sub-node: · line 86

Quoted 6 lines
Documentation/devicetree/bindings/sound/cs35l35.txt +1 -1
@@ -82,7 +82,7 @@ Optional H/G Algorithm sub-node:
  Optional properties for the "cirrus,classh-internal-algo" Sub-node
 
    Section 7.29 Class H Control
-  - cirrus,classh-bst-overide : Boolean
+  - cirrus,classh-bst-override : Boolean
    - cirrus,classh-bst-max-limit

NAK, ABI break.

Best regards,
Krzysztof

#3 lore raw
In reply to IRRatium
Quoted 16 lines · IRRatium

Fix typo in property name 'cirrus,classh-bst-overide', should be 'cirrus,classh-bst-override'.

---
 sound/soc/codecs/cs35l35.c | 2 +-

 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/codecs/cs35l35.c +0 -0
index 7a01b1d9f..7d9b42c5a 100644
@@ -1311,7 +1311,7 @@ static int cs35l35_handle_of_data(struct i2c_client
 *i2c_client,
 
      if (classh_config->classh_algo_enable) {
Quoted 3 lines

         classh_config->classh_bst_override =
-            of_property_read_bool(np, "cirrus,classh-bst-overide"); +            of_property_read_bool(np, "cirrus,classh-bst-override");

This would need to check both properties. The problem is as this is a device tree thing and has been in the wild for some time, we can't be sure there aren't device trees out there depending on the misspelling.

Thanks,
Charles

#4 lore raw
In reply to IRRatium
Quoted 4 lines · IRRatium

Fix typo in property name 'cirrus,classh-bst-overide', should be 'cirrus,classh-bst-override'.

We don't take anonymous contributions.

Quoted 9 lines
---
  sound/soc/codecs/cs35l35.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/codecs/cs35l35.c +0 -0
index 7a01b1d9f..7d9b42c5a 100644

sound/soc/codecs/cs35l35.c static int cs35l35_handle_of_data(struct · line 1315

Quoted 6 lines
sound/soc/codecs/cs35l35.c +1 -1
@@ -1311,7 +1311,7 @@ static int cs35l35_handle_of_data(struct 
 i2c_client *i2c_client,
 
      if (classh_config->classh_algo_enable) {
          classh_config->classh_bst_override =
-            of_property_read_bool(np, "cirrus,classh-bst-overide");
+            of_property_read_bool(np, "cirrus,classh-bst-override");

ABI break, so that's a strong no.

Best regards,
Krzysztof