[PATCH 02/15] staging: comedi: ni_daq_700: use 8253.h helpers for timer operations

Ian Abbott abbotti at mev.co.uk
Wed Jul 16 11:45:06 UTC 2014


On 2014-07-15 01:20, H Hartley Sweeten wrote:
> Clarify the timer operations by using the helper functions in 8253.h.
>
> For aesthetics, factor the "ai start conversion" code out of daq700_ai_rinsn().
>
> Signed-off-by: H Hartley Sweeten <hsweeten at visionengravers.com>
> Cc: Ian Abbott <abbotti at mev.co.uk>
> Cc: Greg Kroah-Hartman <gregk at linuxfoundation.org>
> ---
>   drivers/staging/comedi/drivers/ni_daq_700.c | 35 ++++++++++++++++++++---------
>   1 file changed, 24 insertions(+), 11 deletions(-)
>
> diff --git a/drivers/staging/comedi/drivers/ni_daq_700.c b/drivers/staging/comedi/drivers/ni_daq_700.c
> index 4d5cb5a..16b52b6 100644
> --- a/drivers/staging/comedi/drivers/ni_daq_700.c
> +++ b/drivers/staging/comedi/drivers/ni_daq_700.c
> @@ -51,11 +51,18 @@
>   #include <linux/delay.h>
>   #include <linux/interrupt.h>
>
> -#include "../comedidev.h"
> -
>   #include <pcmcia/cistpl.h>
>   #include <pcmcia/ds.h>
>
> +#include "../comedidev.h"
> +
> +#include "8253.h"
> +
> +/*
> + * Regsiter I/O map
> + */

Typo :)

-- 
-=( Ian Abbott @ MEV Ltd.    E-mail: <abbotti at mev.co.uk>        )=-
-=( Tel: +44 (0)161 477 1898   FAX: +44 (0)161 718 3587         )=-


More information about the devel mailing list