Skip to content

Commit faf3c10

Browse files
author
Wolfram Sang
committed
i2c: testunit: use decimal values in docs when appropriate
Sometimes decimal values are just shorter (like for cmds), sometimes they are even easier to understand (like for the delay value). Make use of them. Signed-off-by: Wolfram Sang <[email protected]>
1 parent add0362 commit faf3c10

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Documentation/i2c/slave-testunit-backend.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ from another device on the bus. If the bus master under test also wants to
7575
access the bus at the same time, the bus will be busy. Example to read 128
7676
bytes from device 0x50 after 50ms of delay::
7777

78-
# i2cset -y 0 0x30 0x01 0x50 0x80 0x05 i
78+
# i2cset -y 0 0x30 1 0x50 0x80 5 i
7979

8080
0x02 SMBUS_HOST_NOTIFY
8181
~~~~~~~~~~~~~~~~~~~~~~
@@ -95,9 +95,9 @@ bytes from device 0x50 after 50ms of delay::
9595

9696
Also needs master mode. This test will send an SMBUS_HOST_NOTIFY message to the
9797
host. Note that the status word is currently ignored in the Linux Kernel.
98-
Example to send a notification after 10ms::
98+
Example to send a notification with status word 0x6442 after 10ms::
9999

100-
# i2cset -y 0 0x30 0x02 0x42 0x64 0x01 i
100+
# i2cset -y 0 0x30 2 0x42 0x64 1 i
101101

102102
If the host controller supports HostNotify, this message with debug level
103103
should appear (Linux 6.11 and later)::
@@ -116,7 +116,7 @@ should appear (Linux 6.11 and later)::
116116
- DELAY
117117

118118
* - 0x03
119-
- must be '1', i.e. one further byte will be written
119+
- 0x01 (i.e. one further byte will be written)
120120
- number of bytes to be sent back
121121
- leave out, partial command!
122122

@@ -131,5 +131,5 @@ from length-1 to 0. Here is an example which emulates
131131
i2c_smbus_block_process_call() using i2ctransfer (you need i2c-tools v4.2 or
132132
later)::
133133

134-
# i2ctransfer -y 0 w3@0x30 0x03 0x01 0x10 r?
134+
# i2ctransfer -y 0 w3@0x30 3 1 0x10 r?
135135
0x10 0x0f 0x0e 0x0d 0x0c 0x0b 0x0a 0x09 0x08 0x07 0x06 0x05 0x04 0x03 0x02 0x01 0x00

0 commit comments

Comments
 (0)