Skip to content

Commit 8a05eb8

Browse files
mchehabJonathan Corbet
authored andcommitted
docs: misc-devices/pci-endpoint-test.txt: convert to ReST
- use title markups; - mark literal blocks. Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org> Link: https://lore.kernel.org/r/1b1f4e5e57fd2065828cecc9d07afbd247349e94.1592203650.git.mchehab+huawei@kernel.org Signed-off-by: Jonathan Corbet <corbet@lwn.net>
1 parent 3471b9f commit 8a05eb8

4 files changed

Lines changed: 15 additions & 14 deletions

File tree

Documentation/misc-devices/ad525x_dpot.txt renamed to Documentation/misc-devices/ad525x_dpot.rst

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
1-
---------------------------------
2-
AD525x Digital Potentiometers
3-
---------------------------------
1+
.. SPDX-License-Identifier: GPL-2.0
2+
3+
=============================
4+
AD525x Digital Potentiometers
5+
=============================
46

57
The ad525x_dpot driver exports a simple sysfs interface. This allows you to
68
work with the immediate resistance settings as well as update the saved startup
79
settings. Access to the factory programmed tolerance is also provided, but
810
interpretation of this settings is required by the end application according to
911
the specific part in use.
1012

11-
---------
12-
Files
13-
---------
13+
Files
14+
=====
1415

1516
Each dpot device will have a set of eeprom, rdac, and tolerance files. How
1617
many depends on the actual part you have, as will the range of allowed values.
@@ -24,23 +25,22 @@ and may vary greatly on a part-by-part basis. For exact interpretation of
2425
this field, please consult the datasheet for your part. This is presented
2526
as a hex file for easier parsing.
2627

27-
-----------
28-
Example
29-
-----------
28+
Example
29+
=======
3030

3131
Locate the device in your sysfs tree. This is probably easiest by going into
32-
the common i2c directory and locating the device by the i2c slave address.
32+
the common i2c directory and locating the device by the i2c slave address::
3333

3434
# ls /sys/bus/i2c/devices/
3535
0-0022 0-0027 0-002f
3636

3737
So assuming the device in question is on the first i2c bus and has the slave
38-
address of 0x2f, we descend (unrelated sysfs entries have been trimmed).
38+
address of 0x2f, we descend (unrelated sysfs entries have been trimmed)::
3939

4040
# ls /sys/bus/i2c/devices/0-002f/
4141
eeprom0 rdac0 tolerance0
4242

43-
You can use simple reads/writes to access these files:
43+
You can use simple reads/writes to access these files::
4444

4545
# cd /sys/bus/i2c/devices/0-002f/
4646

‎Documentation/misc-devices/index.rst‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ fit into other categories.
1414
.. toctree::
1515
:maxdepth: 2
1616

17+
ad525x_dpot
1718
eeprom
1819
ibmvmc
1920
ics932s401

‎drivers/misc/Kconfig‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ config AD525X_DPOT
2424
AD5271, AD5272, AD5274
2525
digital potentiometer chips.
2626

27-
See Documentation/misc-devices/ad525x_dpot.txt for the
27+
See Documentation/misc-devices/ad525x_dpot.rst for the
2828
userspace interface.
2929

3030
This driver can also be built as a module. If so, the module

‎drivers/misc/ad525x_dpot.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
* AD5272 1 1024 20, 50, 100 (50-TP)
5959
* AD5274 1 256 20, 50, 100 (50-TP)
6060
*
61-
* See Documentation/misc-devices/ad525x_dpot.txt for more info.
61+
* See Documentation/misc-devices/ad525x_dpot.rst for more info.
6262
*
6363
* derived from ad5258.c
6464
* Copyright (c) 2009 Cyber Switching, Inc.

0 commit comments

Comments
 (0)