Skip to content

Commit 9d55e7b

Browse files
Wolfram Sangwsakernel
authored andcommitted
Documentation: i2c: fix references to other documents
Similar to commit fe99b81 ("docs: i2c: i2c-sysfs: fix hyperlinks"), make other links in documentation consistent with the preferred way. Signed-off-by: Wolfram Sang <[email protected]> Reviewed-by: Luca Ceresoli <[email protected]> Tested-by: Luca Ceresoli <[email protected]> Signed-off-by: Wolfram Sang <[email protected]>
1 parent 2c2c72e commit 9d55e7b

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

Documentation/i2c/dev-interface.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ You can do plain I2C transactions by using read(2) and write(2) calls.
148148
You do not need to pass the address byte; instead, set it through
149149
ioctl I2C_SLAVE before you try to access the device.
150150

151-
You can do SMBus level transactions (see documentation file smbus-protocol
151+
You can do SMBus level transactions (see documentation file smbus-protocol.rst
152152
for details) through the following functions::
153153

154154
__s32 i2c_smbus_write_quick(int file, __u8 value);

Documentation/i2c/slave-interface.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ User manual
3232
===========
3333

3434
I2C slave backends behave like standard I2C clients. So, you can instantiate
35-
them as described in the document 'instantiating-devices'. The only difference
36-
is that i2c slave backends have their own address space. So, you have to add
37-
0x1000 to the address you would originally request. An example for
35+
them as described in the document instantiating-devices.rst. The only
36+
difference is that i2c slave backends have their own address space. So, you
37+
have to add 0x1000 to the address you would originally request. An example for
3838
instantiating the slave-eeprom driver from userspace at the 7 bit address 0x64
3939
on bus 1::
4040

Documentation/i2c/writing-clients.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ stop condition is issued between transaction. The i2c_msg structure
364364
contains for each message the client address, the number of bytes of the
365365
message and the message data itself.
366366

367-
You can read the file ``i2c-protocol`` for more information about the
367+
You can read the file i2c-protocol.rst for more information about the
368368
actual I2C protocol.
369369

370370

@@ -414,7 +414,7 @@ transactions return 0 on success; the 'read' transactions return the read
414414
value, except for block transactions, which return the number of values
415415
read. The block buffers need not be longer than 32 bytes.
416416

417-
You can read the file ``smbus-protocol`` for more information about the
417+
You can read the file smbus-protocol.rst for more information about the
418418
actual SMBus protocol.
419419

420420

0 commit comments

Comments
 (0)