summaryrefslogtreecommitdiff
path: root/drivers/zorro
diff options
context:
space:
mode:
authorJonathan Cameron <jic23@kernel.org>2012-06-30 12:52:00 (GMT)
committerJonathan Cameron <jic23@kernel.org>2012-08-27 17:58:30 (GMT)
commitc559afbfb08c7eac215ba417251225d3a8e01062 (patch)
treefedb159ef6c40d89c2fe9769dfddac67be6667f3 /drivers/zorro
parent8e8287526844441008df286536a21722277bb487 (diff)
downloadlinux-c559afbfb08c7eac215ba417251225d3a8e01062.tar.xz
iio:kfifo_buf Take advantage of the fixed record size used in IIO
By bypassing the standard macros for setting up the kfifo we can take advantage of the fixed record size implementation without having to have a type to pass in (from which the size of an element is normally established). In IIO we have variable 'scans' as our records in which any element can be present or not. They do not however vary when we are actually filling or reading from the buffer. Thus we have a fixed record size whenever we are actually running. As setup and tear down are not in the fast path we can take the overhead of reinitializing the kfifo every time. Signed-off-by: Jonathan Cameron <jic23@kernel.org> Tested-by: Lars-Peter Clausen <lars@metafoo.de>
Diffstat (limited to 'drivers/zorro')
0 files changed, 0 insertions, 0 deletions