]> www.infradead.org Git - users/jedix/linux-maple.git/commit
iio: buffer: use struct iio_scan_type to simplify code
authorDavid Lechner <dlechner@baylibre.com>
Thu, 30 May 2024 15:14:09 +0000 (10:14 -0500)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Tue, 4 Jun 2024 18:53:08 +0000 (19:53 +0100)
commit7758562898033a3bd98a24d2a541c930b0fc98e6
tree79d60d5b50c5404c8f110c022d198f8ca35b7f27
parentfd7179ece035417f44f7ecff086d6df674d8a5bd
iio: buffer: use struct iio_scan_type to simplify code

By using struct iio_scan_type, we can simplify the code by removing
lots of duplicate pointer dereferences. This make the code a bit easier
to read.

This also prepares for a future where channels may have more than one
scan_type.

Signed-off-by: David Lechner <dlechner@baylibre.com>
Reviewed-by: Nuno Sa <nuno.sa@analog.com>
Link: https://lore.kernel.org/r/20240530-iio-add-support-for-multiple-scan-types-v3-2-cbc4acea2cfa@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/industrialio-buffer.c