From 626b4b0e7af52043a7b61696bca06c6b1d51b41d Mon Sep 17 00:00:00 2001 From: David Schleef Date: Sat, 1 Dec 2001 05:11:02 +0000 Subject: [PATCH] Remove spurious floating point code that shouldn't be there --- comedi/drivers/ni_at_a2150.c | 3 ++- comedi/drivers/rtd520.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/comedi/drivers/ni_at_a2150.c b/comedi/drivers/ni_at_a2150.c index 9a28a2ad..d3f9b0ac 100644 --- a/comedi/drivers/ni_at_a2150.c +++ b/comedi/drivers/ni_at_a2150.c @@ -695,8 +695,9 @@ static int a2150_ai_cmd(comedi_device *dev, comedi_subdevice *s) clear_dma_ff(devpriv->dma); set_dma_addr(devpriv->dma, virt_to_bus(devpriv->dma_buffer)); // set size of transfer to fill in 1/3 second +#define ONE_THIRD_SECOND 333333333 devpriv->dma_transfer_size = sizeof(devpriv->dma_buffer[0]) * cmd->chanlist_len * - (1000000000.0 / 3.0 ) / cmd->scan_begin_arg; + ONE_THIRD_SECOND / cmd->scan_begin_arg; if(devpriv->dma_transfer_size > A2150_DMA_BUFFER_SIZE) devpriv->dma_transfer_size = A2150_DMA_BUFFER_SIZE; if(devpriv->dma_transfer_size < sizeof(devpriv->dma_buffer[0])) diff --git a/comedi/drivers/rtd520.c b/comedi/drivers/rtd520.c index b5b18d0c..81967cc4 100644 --- a/comedi/drivers/rtd520.c +++ b/comedi/drivers/rtd520.c @@ -1491,7 +1491,7 @@ static int rtd_ai_cancel ( static int rtd_ns_to_timer_base ( unsigned int *nanosec, /* desired period (in ns) */ int round_mode, - double base) /* clock period (in ns) */ + int base) /* clock period (in ns) */ { int divider; -- 2.26.2