]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
docs: iio: triggered-buffers: use new helpers in example
authorDavid Lechner <dlechner@baylibre.com>
Sun, 17 May 2026 17:00:59 +0000 (12:00 -0500)
committerJonathan Cameron <jic23@kernel.org>
Sun, 31 May 2026 10:01:46 +0000 (11:01 +0100)
commit6bce70d0a9bc907cedb12f498ebc4cd5f7ac7cee
treef2f83ac9a8fd33ec2a00fe4792668a7f53c10fe6
parent8b44f074a76c310e4b311fb4509586254f251dcb
docs: iio: triggered-buffers: use new helpers in example

Update the "typical" triggered buffer example to use various new helpers
that have been added in the last year or so. This reflects current
expectations of how similar code should be written.

Also zero-initialize the buffer so we don't leak stack data. And fix a
missing semicolon while we're at it.

Signed-off-by: David Lechner <dlechner@baylibre.com>
Reviewed-by: Stepan Ionichev <sozdayvek@gmail.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Documentation/driver-api/iio/triggered-buffers.rst