On 31/10/14 19:04, H Hartley Sweeten wrote:
Commit (bf33eb4b4f57) introduced a some new helper functions to manipulate the sample size. This series removes the old 'bytes_per_sample()' helper and updates some of the drivers to use the new helper functions to remove the hardcoded assumption of the sample size. H Hartley Sweeten (9): staging: comedi: remove use of 'bytes_per_sample()' staging: comedi: ni_mio_common: use sample manipulation helpers staging: comedi: das1800: use sample manipulation helpers staging: comedi: das16: use sample manipulation helpers staging: comedi: adv_pci1710: use sample manipulation helpers staging: comedi: adl_pci9118: use sample manipulation helpers staging: comedi: adl_pci9111: use sample manipulation helpers staging: comedi: hwdrv_apci3120: use sample manipulation helpers staging: comedi: ni_at_a2150: use sample manipulation helpers drivers/staging/comedi/comedi_buf.c | 14 ++++--- drivers/staging/comedi/comedi_fops.c | 2 +- drivers/staging/comedi/comedidev.h | 6 --- drivers/staging/comedi/drivers.c | 4 +- .../comedi/drivers/addi-data/hwdrv_apci3120.c | 4 +- drivers/staging/comedi/drivers/adl_pci9111.c | 6 +-- drivers/staging/comedi/drivers/adl_pci9118.c | 3 +- drivers/staging/comedi/drivers/adv_pci1710.c | 15 ++++---- drivers/staging/comedi/drivers/cb_pcidas.c | 2 +- drivers/staging/comedi/drivers/cb_pcidas64.c | 6 +-- drivers/staging/comedi/drivers/das16.c | 5 ++- drivers/staging/comedi/drivers/das1800.c | 2 +- drivers/staging/comedi/drivers/dt282x.c | 4 +- drivers/staging/comedi/drivers/ni_at_a2150.c | 11 +++--- drivers/staging/comedi/drivers/ni_mio_common.c | 45 ++++++++++++---------- drivers/staging/comedi/drivers/usbduxfast.c | 4 +- 16 files changed, 71 insertions(+), 62 deletions(-)
Reviewed-by: Ian Abbott <abbotti@xxxxxxxxx> -- -=( Ian Abbott @ MEV Ltd. E-mail: <abbotti@xxxxxxxxx> )=- -=( Web: http://www.mev.co.uk/ )=- _______________________________________________ devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxx http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel