Skip to content

Commit 8c56eeb

Browse files
tduszynskiJonathan Corbet
authored andcommitted
docs: driver-api: iio: fix errors in documentation
Improve IIO documentation by fixing a few mistakes. Signed-off-by: Tomasz Duszynski <tduszyns@gmail.com> Acked-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Signed-off-by: Jonathan Corbet <corbet@lwn.net>
1 parent d2b008f commit 8c56eeb

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

‎Documentation/driver-api/iio/buffers.rst‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ IIO buffer setup
2626
================
2727

2828
The meta information associated with a channel reading placed in a buffer is
29-
called a scan element . The important bits configuring scan elements are
29+
called a scan element. The important bits configuring scan elements are
3030
exposed to userspace applications via the
3131
:file:`/sys/bus/iio/iio:device{X}/scan_elements/*` directory. This file contains
3232
attributes of the following form:

‎Documentation/driver-api/iio/core.rst‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@
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

1313
* struct :c:type:`iio_dev` - industrial I/O device
14-
* :c:func:`iio_device_alloc()` - alocate an :c:type:`iio_dev` from a driver
14+
* :c:func:`iio_device_alloc()` - allocate an :c:type:`iio_dev` from a driver
1515
* :c:func:`iio_device_free()` - free an :c:type:`iio_dev` from a driver
1616
* :c:func:`iio_device_register()` - register a device with the IIO subsystem
1717
* :c:func:`iio_device_unregister()` - unregister a device from the IIO

‎Documentation/driver-api/iio/hw-consumer.rst‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
===========
22
HW consumer
33
===========
4-
An IIO device can be directly connected to another device in hardware. in this
4+
An IIO device can be directly connected to another device in hardware. In this
55
case the buffers between IIO provider and IIO consumer are handled by hardware.
66
The Industrial I/O HW consumer offers a way to bond these IIO devices without
77
software buffer for data. The implementation can be found under

‎Documentation/driver-api/iio/triggers.rst‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ There are two locations in sysfs related to triggers:
3838

3939
* :file:`/sys/bus/iio/devices/iio:device{X}/trigger/*`, this directory is
4040
created once the device supports a triggered buffer. We can associate a
41-
trigger with our device by writing the trigger's name in the
41+
trigger with our device by writing the trigger's name in the
4242
:file:`current_trigger` file.
4343

4444
IIO trigger setup

0 commit comments

Comments
 (0)