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)
commitf6266a41d820feaa7b7febe122b285e336e40bfd
tree5c75a83910edfb0121a25b531f5d06e0f01f5032
parente57bfa673c3056747f8014b956e6fbed02f917d5
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