Files
linux/drivers
H Hartley Sweeten 00ebe61736 staging: comedi: pcl812: tidy up dma buffer allocation
This driver uses 2 buffers for DMA. Refactor the buffer allocation to
use a for loop to remove code duplication. Remove the dev_err() messages
when __get_dma_pages() fails and change the errno returned from -EBUSY
to -ENOMEM.

Both buffers are the same size so replace the 'dmapages' and 'hwdmasize'
arrays in the private data with variables to save a bit of space.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-02-18 11:55:32 -08:00
..
2014-02-14 10:40:47 +01:00
2014-01-12 23:48:18 +01:00
2014-01-15 14:51:22 -08:00
2014-02-13 11:12:00 -08:00
2014-02-17 14:45:02 -08:00