forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 cde9070d9970eef1f7ec2360586c802a16230ad8
kernel/Documentation/driver-api/iio/core.rst
....@@ -2,19 +2,19 @@
22 Core elements
33 =============
44
5
-The Industrial I/O core offers a unified framework for writing drivers for
6
-many different types of embedded sensors. a standard interface to user space
5
+The Industrial I/O core offers both a unified framework for writing drivers for
6
+many different types of embedded sensors and a standard interface to user space
77 applications manipulating sensors. The implementation can be found under
88 :file:`drivers/iio/industrialio-*`
99
1010 Industrial I/O Devices
1111 ----------------------
1212
13
-* struct :c:type:`iio_dev` - industrial I/O device
14
-* :c:func:`iio_device_alloc()` - alocate an :c:type:`iio_dev` from a driver
15
-* :c:func:`iio_device_free()` - free an :c:type:`iio_dev` from a driver
16
-* :c:func:`iio_device_register()` - register a device with the IIO subsystem
17
-* :c:func:`iio_device_unregister()` - unregister a device from the IIO
13
+* struct iio_dev - industrial I/O device
14
+* iio_device_alloc() - allocate an :c:type:`iio_dev` from a driver
15
+* iio_device_free() - free an :c:type:`iio_dev` from a driver
16
+* iio_device_register() - register a device with the IIO subsystem
17
+* iio_device_unregister() - unregister a device from the IIO
1818 subsystem
1919
2020 An IIO device usually corresponds to a single hardware sensor and it
....@@ -34,17 +34,17 @@
3434
3535 At probe:
3636
37
-1. Call :c:func:`iio_device_alloc()`, which allocates memory for an IIO device.
37
+1. Call iio_device_alloc(), which allocates memory for an IIO device.
3838 2. Initialize IIO device fields with driver specific information (e.g.
3939 device name, device channels).
40
-3. Call :c:func:`iio_device_register()`, this registers the device with the
40
+3. Call iio_device_register(), this registers the device with the
4141 IIO core. After this call the device is ready to accept requests from user
4242 space applications.
4343
4444 At remove, we free the resources allocated in probe in reverse order:
4545
46
-1. :c:func:`iio_device_unregister()`, unregister the device from the IIO core.
47
-2. :c:func:`iio_device_free()`, free the memory allocated for the IIO device.
46
+1. iio_device_unregister(), unregister the device from the IIO core.
47
+2. iio_device_free(), free the memory allocated for the IIO device.
4848
4949 IIO device sysfs interface
5050 ==========================
....@@ -66,7 +66,7 @@
6666 IIO device channels
6767 ===================
6868
69
-struct :c:type:`iio_chan_spec` - specification of a single channel
69
+struct iio_chan_spec - specification of a single channel
7070
7171 An IIO device channel is a representation of a data channel. An IIO device can
7272 have one or multiple channels. For example:
....@@ -77,7 +77,7 @@
7777 * an accelerometer can have up to 3 channels representing acceleration on X, Y
7878 and Z axes.
7979
80
-An IIO channel is described by the struct :c:type:`iio_chan_spec`.
80
+An IIO channel is described by the struct iio_chan_spec.
8181 A thermometer driver for the temperature sensor in the example above would
8282 have to describe its channel as follows::
8383