Documentation: iio: fix typo in triggered-buffers example
Subsystems (2)
PATCH v2 1/1 Documentation: iio: fix typo in triggered-buffers example
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.
---
v2:
- Drop the file name and line numbers from the commit body, refer to the example by its section name instead (per Andy)
Documentation/driver-api/iio/triggered-buffers.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/driver-api/iio/triggered-buffers.rst +1 -1
@@ -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);
Signature · 1 line
2.43.0
Quoted 8 lines · Stepan Ionichev
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 <[email protected]>---
Looks fine to me.
Signature · 3 lines
Kind regards CJD
Quoted 4 lines · Stepan Ionichev
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.
Signature · 2 lines
With Best Regards, Andy Shevchenko
Quoted 8 lines · On Fri, 15 May 2026 13:59:06 +0300 Andy Shevchenko…
Quoted 4 lines · Stepan Ionichev
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.Reviewed-by Andy Shevchenko <[email protected]>
Applied.
Thanks,
J