]> git.karo-electronics.de Git - linux-beck.git/commit
staging: comedi: ni_at_a2150: use comedi_bytes_per_sample()
authorH Hartley Sweeten <hartleys@visionengravers.com>
Mon, 12 Jan 2015 17:55:47 +0000 (10:55 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 17 Jan 2015 22:25:19 +0000 (14:25 -0800)
commit2447a27c877a1a4995a85eb4bc456551c0c5a5f9
treec1d82def919bbd1b74efe75c11f6e224d9f7ca16
parent45478548425cc84d2d39cdac9daf446e5744877d
staging: comedi: ni_at_a2150: use comedi_bytes_per_sample()

For aesthetics, use the helper function to get the byte size of each sample
instead of using sizeof() the first buffer element.

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/ni_at_a2150.c