Skip to content

Commit a320274

Browse files
puranjaymohanJonathan Corbet
authored andcommitted
IIO: Documentation: Replace deprecated :c:func: Usage
Replace :c:func: with func() as the previous usage is deprecated. Signed-off-by: Puranjay Mohan <puranjay12@gmail.com> Link: https://lore.kernel.org/r/20200812174611.18580-1-puranjay12@gmail.com Signed-off-by: Jonathan Corbet <corbet@lwn.net>
1 parent 94dea15 commit a320274

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

Documentation/driver-api/iio/core.rst

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ Industrial I/O Devices
1111
----------------------
1212

1313
* struct :c:type:`iio_dev` - industrial I/O device
14-
* :c:func:`iio_device_alloc()` - allocate 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
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 @@ A typical IIO driver will register itself as an :doc:`I2C <../i2c>` or
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
==========================

0 commit comments

Comments
 (0)