Commit 50f7ee9f authored by H Hartley Sweeten's avatar H Hartley Sweeten Committed by Greg Kroah-Hartman

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: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent ca52a233
/* /*
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 * Driver: rti800
Description: Analog Devices RTI-800/815 * Description: Analog Devices RTI-800/815
Author: ds * Devices: (Analog Devices) RTI-800 [rti800]
Status: unknown * (Analog Devices) RTI-815 [rti815]
Updated: Fri, 05 Sep 2008 14:50:44 +0100 * Author: David A. Schleef <ds@schleef.org>
Devices: [Analog Devices] RTI-800 (rti800), RTI-815 (rti815) * Status: unknown
* Updated: Fri, 05 Sep 2008 14:50:44 +0100
Configuration options: *
[0] - I/O port base address * Configuration options:
[1] - IRQ (not supported / unused) * [0] - I/O port base address
[2] - A/D reference * [1] - IRQ (not supported / unused)
0 = differential * [2] - A/D mux/reference (number of channels)
1 = pseudodifferential (common) * 0 = differential
2 = single-ended * 1 = pseudodifferential (common)
[3] - A/D range * 2 = single-ended
0 = [-10,10] * [3] - A/D range
1 = [-5,5] * 0 = [-10,10]
2 = [0,10] * 1 = [-5,5]
[4] - A/D encoding * 2 = [0,10]
0 = two's complement * [4] - A/D encoding
1 = straight binary * 0 = two's complement
[5] - DAC 0 range * 1 = straight binary
0 = [-10,10] * [5] - DAC 0 range
1 = [0,10] * 0 = [-10,10]
[6] - DAC 0 encoding * 1 = [0,10]
0 = two's complement * [6] - DAC 0 encoding
1 = straight binary * 0 = two's complement
[7] - DAC 1 range (same as DAC 0) * 1 = straight binary
[8] - DAC 1 encoding (same as DAC 0) * [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, ...@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment