]> git.baikalelectronics.ru Git - kernel.git/commit
staging: comedi: adl_pci9118: use comedi_bytes_to_samples()
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Tue, 11 Nov 2014 00:57:56 +0000 (17:57 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 26 Nov 2014 23:31:45 +0000 (15:31 -0800)
commit6451b51dccbfdbd30e001d2eaf2333ea9920ff23
tree5c75a83910edfb0121a25b531f5d06e0f01f5032
parent2e78455dda275561bc7da86a0a618e047b560985
staging: comedi: adl_pci9118: use comedi_bytes_to_samples()

Remove the assumption of the sample size by using the comedi_bytes_to_samples()
helper function to convert the number of bytes to the number of samples.

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>
drivers/staging/comedi/drivers/adl_pci9118.c