iio: honeywell,mprls0025pa.yaml: fix function numbering
Andreas Klinger
maintainerPATCH 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")
Suggested-by Petre Rodan <[email protected]>
Signed-off-by Andreas Klinger <[email protected]>
--- .../bindings/iio/pressure/honeywell,mprls0025pa.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
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) $ref: /schemas/types.yaml#/definitions/uint32 vdd-supply:
Signature · 1 line
2.39.2
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
Suggested-by Petre Rodan <[email protected]>
This should be Reported-by.
Quoted 10 lines
Signed-off-by Andreas Klinger <[email protected]>--- .../bindings/iio/pressure/honeywell,mprls0025pa.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)Documentation/devicetree/bindings/iio/pressure/honeywell,mprls0025pa.yaml +0
-0
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