]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
Documentation: iio: fix typo in triggered-buffers example
authorStepan Ionichev <sozdayvek@gmail.com>
Thu, 14 May 2026 08:51:57 +0000 (13:51 +0500)
committerJonathan Cameron <jic23@kernel.org>
Sun, 31 May 2026 09:59:40 +0000 (10:59 +0100)
In the "IIO triggered buffer setup" example, iio_triggered_buffer_setup()
is called with "sensor_iio_polfunc" (single 'l') while the function is
defined and later referenced as "sensor_iio_pollfunc" (double 'l'). Fix
the misspelling so the example is consistent.

Signed-off-by: Stepan Ionichev <sozdayvek@gmail.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>
Reviewed-by: Joshua Crofts <joshua.crofts1@gmail.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Documentation/driver-api/iio/triggered-buffers.rst

index 417555dbbdf4f46bd958dd20320d8d28338e721a..23b82357eba64a0b98425a5a1e7328f8c5514912 100644 (file)
@@ -43,7 +43,7 @@ A typical triggered buffer setup looks like this::
     }
 
     /* setup triggered buffer, usually in probe function */
-    iio_triggered_buffer_setup(indio_dev, sensor_iio_polfunc,
+    iio_triggered_buffer_setup(indio_dev, sensor_iio_pollfunc,
                                sensor_trigger_handler,
                                sensor_buffer_setup_ops);