[PATCH v2 00/18] staging: comedi: make core track the number of scans
Ian Abbott
abbotti at mev.co.uk
Wed Nov 5 17:31:16 UTC 2014
On 05/11/2014 17:20, H Hartley Sweeten wrote:
> The comedi drivers that support async commands with a cmd->stop_src of TRIG_COUNT
> currently have a private data member that is used to count the number of scans
> completed in order to detect the end of acquisition for the command.
>
> This series addes a new member, 'scans_done', to comedi_async and makes the core
> automatically count the completed scans. The comedi drivers that do simple scan
> counting are then converted to use the new member.
>
> v2: update series per suggestions from Ian Abbott
> PATCH 01/18 - clamp scans_done to UINT_MAX
> PATCH 12/18 - clear devpriv->ai_cmd_running flag correctly
>
> H Hartley Sweeten (18):
> staging: comedi: comedidev.h: add 'scans_done' member to comedi_async
> staging: comedi: addi_apci_2032: use comedi_async 'scans_done' to detect EOA
> staging: comedi: amplc_dio200_common: use comedi_async 'scans_done' to detect EOA
> staging: comedi: pcl711: use comedi_async 'scans_done' to detect EOA
> staging: comedi: pcl812: use comedi_async 'scans_done' to detect EOA
> staging: comedi: pcl816: use comedi_async 'scans_done' to detect EOA
> staging: comedi: pcl818: remove private data member 'ai_act_chan'
> staging: comedi: pcl818: use comedi_async 'scans_done' to detect EOA
> staging: comedi: adv_pci1710: use comedi_async 'scans_done' to detect EOA
> staging: comedi: pcmmio: use comedi_async 'scans_done' to detect EOA
> staging: comedi: pcmuio: use comedi_async 'scans_done' to detect EOA
> staging: comedi: s626: use comedi_async 'scans_done' to detect EOA
> staging: comedi: usbdux: use comedi_async 'scans_done' to detect AO EOA
> staging: comedi: usbdux: use comedi_async 'scans_done' to detect AI EOA
> staging: comedi: usbduxsigma: use comedi_async 'scans_done' to detect AO EOA
> staging: comedi: usbduxsigma: use comedi_async 'scans_done' to detect AI EOA
> staging: comedi: addi_apci_3120: use comedi_async 'scans_done' to detect EOA
> staging: comedi: das800: use comedi_async 'scans_done' to detect EOA
>
> drivers/staging/comedi/comedi_buf.c | 1 +
> drivers/staging/comedi/comedidev.h | 2 +
> drivers/staging/comedi/drivers.c | 7 +++
> .../comedi/drivers/addi-data/hwdrv_apci3120.c | 34 +++-----------
> drivers/staging/comedi/drivers/addi_apci_2032.c | 17 +++----
> drivers/staging/comedi/drivers/addi_apci_3120.c | 1 -
> drivers/staging/comedi/drivers/adv_pci1710.c | 26 +++--------
> .../staging/comedi/drivers/amplc_dio200_common.c | 14 ++----
> drivers/staging/comedi/drivers/das800.c | 31 +++++--------
> drivers/staging/comedi/drivers/pcl711.c | 16 +++----
> drivers/staging/comedi/drivers/pcl812.c | 9 +---
> drivers/staging/comedi/drivers/pcl816.c | 9 +---
> drivers/staging/comedi/drivers/pcl818.c | 17 +++----
> drivers/staging/comedi/drivers/pcmmio.c | 12 ++---
> drivers/staging/comedi/drivers/pcmuio.c | 14 ++----
> drivers/staging/comedi/drivers/s626.c | 16 ++-----
> drivers/staging/comedi/drivers/usbdux.c | 51 ++++-----------------
> drivers/staging/comedi/drivers/usbduxsigma.c | 52 ++++------------------
> 18 files changed, 81 insertions(+), 248 deletions(-)
>
Reviewed-by: Ian Abbott <abbotti at mev.co.uk>
--
-=( Ian Abbott @ MEV Ltd. E-mail: <abbotti at mev.co.uk> )=-
-=( Web: http://www.mev.co.uk/ )=-
More information about the devel
mailing list