[PATCH] staging: comedi: drivers do not need to reset the async->cur_chan

Ian Abbott abbotti at mev.co.uk
Fri Oct 31 10:01:01 UTC 2014


On 30/10/14 18:21, H Hartley Sweeten wrote:
> The comedi core calls comedi_buf_reset() before starting an async command
> (*do_cmd) and after returning a subdevice to an idle state (*cancel).
>
> The drivers do not need to reset the async->cur_chan in those functions.
>
> Signed-off-by: H Hartley Sweeten <hsweeten at visionengravers.com>
> Cc: Ian Abbott <abbotti at mev.co.uk>
> Cc: Greg Kroah-Hartman <gregkh at linuxfoundation.org>
> ---
>   drivers/staging/comedi/drivers/addi-data/hwdrv_apci3120.c | 2 --
>   drivers/staging/comedi/drivers/adl_pci9118.c              | 2 --
>   drivers/staging/comedi/drivers/adv_pci1710.c              | 2 --
>   drivers/staging/comedi/drivers/ni_atmio16d.c              | 1 -
>   drivers/staging/comedi/drivers/pcl812.c                   | 1 -
>   drivers/staging/comedi/drivers/pcl816.c                   | 1 -
>   drivers/staging/comedi/drivers/usbdux.c                   | 6 ------
>   drivers/staging/comedi/drivers/usbduxfast.c               | 2 --
>   drivers/staging/comedi/drivers/usbduxsigma.c              | 5 -----
>   9 files changed, 22 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