summaryrefslogtreecommitdiff
path: root/drivers/iio/temperature/maxim_thermocouple.c
diff options
context:
space:
mode:
authorPaul Cercueil <paul@crapouillou.net>2023-12-19 18:50:02 +0100
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2023-12-21 11:28:47 +0000
commitee9ec49046951eff704752669f0c388b506ddbdf (patch)
treecd7f0055c6516559244993863224021f42e111cc /drivers/iio/temperature/maxim_thermocouple.c
parent4bb104e4f30d2202657b77c948f9ef1366ac438e (diff)
iio: buffer-dma: Get rid of outgoing queue
The buffer-dma code was using two queues, incoming and outgoing, to manage the state of the blocks in use. While this totally works, it adds some complexity to the code, especially since the code only manages 2 blocks. It is much easier to just check each block's state manually, and keep a counter for the next block to dequeue. Since the new DMABUF based API wouldn't use the outgoing queue anyway, getting rid of it now makes the upcoming changes simpler. With this change, the IIO_BLOCK_STATE_DEQUEUED is now useless, and can be removed. Signed-off-by: Paul Cercueil <paul@crapouillou.net> Link: https://lore.kernel.org/r/20231219175009.65482-2-paul@crapouillou.net Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio/temperature/maxim_thermocouple.c')
0 files changed, 0 insertions, 0 deletions