Skip to contentSkip to conversation

iio: honeywell,mprls0025pa.yaml: fix function numbering

PATCH In review Andreas Klinger 2 participants 2 messages Nov 16, 2023

Subsystems (3)
lore
Share & tools
lore

Andreas Klinger

author maintainer
#0 lore raw

PATCH 1/1 iio: honeywell,mprls0025pa.yaml: fix function numbering

Fix wrongly documented numbering of transfer functions.

Fixes a765c985e696 ("dt-bindings: iio: pressure: Support Honeywell mprls0025pa sensor")
---
 .../bindings/iio/pressure/honeywell,mprls0025pa.yaml        | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
Documentation/devicetree/bindings/iio/pressure/honeywell,mprls0025pa.yaml +3 -3
index b31f8120f14e..61775eff1128 100644
@@ -64,9 +64,9 @@ properties:
     description: |
       Transfer function which defines the range of valid values delivered by the
       sensor.
-      1 - A, 10% to 90% of 2^24 (1677722 .. 15099494)
-      2 - B, 2.5% to 22.5% of 2^24 (419430 .. 3774874)
-      3 - C, 20% to 80% of 2^24 (3355443 .. 13421773)
+      0 - A, 10% to 90% of 2^24 (1677722 .. 15099494)
+      1 - B, 2.5% to 22.5% of 2^24 (419430 .. 3774874)
+      2 - C, 20% to 80% of 2^24 (3355443 .. 13421773)
     $ref: /schemas/types.yaml#/definitions/uint32
 
   vdd-supply:
Signature · 1 line
2.39.2
#1 lore raw
Quoted 4 lines · Andreas Klinger

Fix wrongly documented numbering of transfer functions.

Fixes a765c985e696 ("dt-bindings: iio: pressure: Support Honeywell mprls0025pa sensor")

No blank line here.

Quoted 1 line

This should be Reported-by.

Quoted 10 lines
---
 .../bindings/iio/pressure/honeywell,mprls0025pa.yaml        | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
Documentation/devicetree/bindings/iio/pressure/honeywell,mprls0025pa.yaml +0 -0
index b31f8120f14e..61775eff1128 100644

Documentation/devicetree/bindings/iio/pressure/honeywell,mprls0025pa.yaml properties: · line 69

Quoted 9 lines
Documentation/devicetree/bindings/iio/pressure/honeywell,mprls0025pa.yaml +3 -3
@@ -64,9 +64,9 @@ properties:
     description: |
       Transfer function which defines the range of valid values delivered by the
       sensor.
-      1 - A, 10% to 90% of 2^24 (1677722 .. 15099494)
-      2 - B, 2.5% to 22.5% of 2^24 (419430 .. 3774874)
-      3 - C, 20% to 80% of 2^24 (3355443 .. 13421773)
+      0 - A, 10% to 90% of 2^24 (1677722 .. 15099494)
+      1 - B, 2.5% to 22.5% of 2^24 (419430 .. 3774874)
+      2 - C, 20% to 80% of 2^24 (3355443 .. 13421773)

I don't understand. These are arbitrary numbers in a dt-binding, why does zero or one indexing make any difference here?
Can't you just fix up the driver to correctly map the dt-binding to whatever needs to be written to registers in the hardware?

Cheers,
Conor.

Quoted 6 lines
Documentation/devicetree/bindings/iio/pressure/honeywell,mprls0025pa.yaml +0 -0
     $ref: /schemas/types.yaml#/definitions/uint32
 
   vdd-supply:
Signature · 1 line
2.39.2