staging: comedi: rti800: cleanup multi-line comments
Cleanup the multi-line comments at the beginning of the file to follow the kernel CodingStyle. Remove the comments before rt1800_attach(). They are a duplicate of the "Configuration Options" in the Comedi comment block at the start of the file. Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com> Cc: Ian Abbott <abbotti@mev.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
ca52a233f7
commit
50f7ee9f7d
@ -1,56 +1,57 @@
|
|||||||
/*
|
/*
|
||||||
comedi/drivers/rti800.c
|
* comedi/drivers/rti800.c
|
||||||
Hardware driver for Analog Devices RTI-800/815 board
|
* Hardware driver for Analog Devices RTI-800/815 board
|
||||||
|
*
|
||||||
COMEDI - Linux Control and Measurement Device Interface
|
* COMEDI - Linux Control and Measurement Device Interface
|
||||||
Copyright (C) 1998 David A. Schleef <ds@schleef.org>
|
* Copyright (C) 1998 David A. Schleef <ds@schleef.org>
|
||||||
|
*
|
||||||
This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
the Free Software Foundation; either version 2 of the License, or
|
* the Free Software Foundation; either version 2 of the License, or
|
||||||
(at your option) any later version.
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
This program is distributed in the hope that it will be useful,
|
* This program is distributed in the hope that it will be useful,
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
GNU General Public License for more details.
|
* GNU General Public License for more details.
|
||||||
|
*
|
||||||
You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
|
||||||
*/
|
*/
|
||||||
/*
|
|
||||||
Driver: rti800
|
|
||||||
Description: Analog Devices RTI-800/815
|
|
||||||
Author: ds
|
|
||||||
Status: unknown
|
|
||||||
Updated: Fri, 05 Sep 2008 14:50:44 +0100
|
|
||||||
Devices: [Analog Devices] RTI-800 (rti800), RTI-815 (rti815)
|
|
||||||
|
|
||||||
Configuration options:
|
/*
|
||||||
[0] - I/O port base address
|
* Driver: rti800
|
||||||
[1] - IRQ (not supported / unused)
|
* Description: Analog Devices RTI-800/815
|
||||||
[2] - A/D reference
|
* Devices: (Analog Devices) RTI-800 [rti800]
|
||||||
0 = differential
|
* (Analog Devices) RTI-815 [rti815]
|
||||||
1 = pseudodifferential (common)
|
* Author: David A. Schleef <ds@schleef.org>
|
||||||
2 = single-ended
|
* Status: unknown
|
||||||
[3] - A/D range
|
* Updated: Fri, 05 Sep 2008 14:50:44 +0100
|
||||||
0 = [-10,10]
|
*
|
||||||
1 = [-5,5]
|
* Configuration options:
|
||||||
2 = [0,10]
|
* [0] - I/O port base address
|
||||||
[4] - A/D encoding
|
* [1] - IRQ (not supported / unused)
|
||||||
0 = two's complement
|
* [2] - A/D mux/reference (number of channels)
|
||||||
1 = straight binary
|
* 0 = differential
|
||||||
[5] - DAC 0 range
|
* 1 = pseudodifferential (common)
|
||||||
0 = [-10,10]
|
* 2 = single-ended
|
||||||
1 = [0,10]
|
* [3] - A/D range
|
||||||
[6] - DAC 0 encoding
|
* 0 = [-10,10]
|
||||||
0 = two's complement
|
* 1 = [-5,5]
|
||||||
1 = straight binary
|
* 2 = [0,10]
|
||||||
[7] - DAC 1 range (same as DAC 0)
|
* [4] - A/D encoding
|
||||||
[8] - DAC 1 encoding (same as DAC 0)
|
* 0 = two's complement
|
||||||
*/
|
* 1 = straight binary
|
||||||
|
* [5] - DAC 0 range
|
||||||
|
* 0 = [-10,10]
|
||||||
|
* 1 = [0,10]
|
||||||
|
* [6] - DAC 0 encoding
|
||||||
|
* 0 = two's complement
|
||||||
|
* 1 = straight binary
|
||||||
|
* [7] - DAC 1 range (same as DAC 0)
|
||||||
|
* [8] - DAC 1 encoding (same as DAC 0)
|
||||||
|
*/
|
||||||
|
|
||||||
#include <linux/interrupt.h>
|
#include <linux/interrupt.h>
|
||||||
#include "../comedidev.h"
|
#include "../comedidev.h"
|
||||||
@ -288,23 +289,6 @@ static int rti800_do_insn_bits(struct comedi_device *dev,
|
|||||||
return insn->n;
|
return insn->n;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
options[0] - I/O port
|
|
||||||
options[1] - irq
|
|
||||||
options[2] - a/d mux
|
|
||||||
0=differential, 1=pseudodiff, 2=single
|
|
||||||
options[3] - a/d range
|
|
||||||
0=bipolar10, 1=bipolar5, 2=unipolar10
|
|
||||||
options[4] - a/d coding
|
|
||||||
0=2's comp, 1=straight binary
|
|
||||||
options[5] - dac0 range
|
|
||||||
0=bipolar10, 1=unipolar10
|
|
||||||
options[6] - dac0 coding
|
|
||||||
0=2's comp, 1=straight binary
|
|
||||||
options[7] - dac1 range
|
|
||||||
options[8] - dac1 coding
|
|
||||||
*/
|
|
||||||
|
|
||||||
static int rti800_attach(struct comedi_device *dev, struct comedi_devconfig *it)
|
static int rti800_attach(struct comedi_device *dev, struct comedi_devconfig *it)
|
||||||
{
|
{
|
||||||
const struct rti800_board *board = comedi_board(dev);
|
const struct rti800_board *board = comedi_board(dev);
|
||||||
|
Loading…
Reference in New Issue
Block a user