Skip to contentSkip to conversation

dt-bindings: sound: adau7118: Fix example warning

PATCH In review Maxime Ripard 2 participants 2 messages Nov 5, 2019

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 dt-bindings: sound: adau7118: Fix example warning

The ADAU7118 has an example where the codec has an i2c address of 14, and the unit address set to 14 as well.

However, while the address is expressed in decimal, the unit-address is supposed to be in hexadecimal, which ends up with two different addresses that trigger a DTC warning. Fix this by setting the address to 0x14.

Cc Nuno Sá <[email protected]>
Cc Lars-Peter Clausen <[email protected]>
Fixes 969d49b2cdc8 ("dt-bindings: asoc: Add ADAU7118 documentation")

---

Changes from v1:
- Fix the address instead of the unit-address.

---
 Documentation/devicetree/bindings/sound/adi,adau7118.yaml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/devicetree/bindings/sound/adi,adau7118.yaml +1 -1
index c3f10afbdd6f..75e0cbe6be70 100644
@@ -67,7 +67,7 @@ examples:
         #size-cells = <0>;
         adau7118_codec: audio-codec@14 {
                 compatible = "adi,adau7118";
-                reg = <14>;
+                reg = <0x14>;
                 #sound-dai-cells = <0>;
                 iovdd-supply = <&supply>;
                 dvdd-supply = <&supply>;
Signature · 6 lines
2.23.0

_______________________________________________
Alsa-devel mailing list
[email protected]
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel
Acked-by on v2 1/1
#1 lore raw
Quoted 13 lines · Maxime Ripard

The ADAU7118 has an example where the codec has an i2c address of 14, and the unit address set to 14 as well.

However, while the address is expressed in decimal, the unit-address is supposed to be in hexadecimal, which ends up with two different addresses that trigger a DTC warning. Fix this by setting the address to 0x14.

Cc Nuno Sá <[email protected]>
Cc Lars-Peter Clausen <[email protected]>
Fixes 969d49b2cdc8 ("dt-bindings: asoc: Add ADAU7118 documentation")
Quoted 7 lines

---

Changes from v1:
- Fix the address instead of the unit-address.

---
 Documentation/devicetree/bindings/sound/adi,adau7118.yaml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)