Staging: comedi: fix space coding style issue in adl_pci9111.c
This is a patch to the adl_pci9111.c file that fixes up multiple please, no space for starting a line warnings, found by the checkpatch.pl tool Signed-off-by: Maurice Dawson <mauricedawson2699@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
fbc69d379c
commit
842ec6ba3b
@@ -1,26 +1,26 @@
|
||||
/*
|
||||
|
||||
comedi/drivers/adl_pci9111.c
|
||||
comedi/drivers/adl_pci9111.c
|
||||
|
||||
Hardware driver for PCI9111 ADLink cards:
|
||||
Hardware driver for PCI9111 ADLink cards:
|
||||
|
||||
PCI-9111HR
|
||||
PCI-9111HR
|
||||
|
||||
Copyright (C) 2002-2005 Emmanuel Pacaud <emmanuel.pacaud@univ-poitiers.fr>
|
||||
Copyright (C) 2002-2005 Emmanuel Pacaud <emmanuel.pacaud@univ-poitiers.fr>
|
||||
|
||||
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
|
||||
the Free Software Foundation; either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
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
|
||||
the Free Software Foundation; either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program; if not, write to the Free Software
|
||||
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program; if not, write to the Free Software
|
||||
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
|
||||
/*
|
||||
@@ -44,33 +44,33 @@ Supports:
|
||||
- scan_end_src TRIG_COUNT
|
||||
- stop_src TRIG_COUNT TRIG_NONE
|
||||
|
||||
The scanned channels must be consecutive and start from 0. They must
|
||||
all have the same range and aref.
|
||||
The scanned channels must be consecutive and start from 0. They must
|
||||
all have the same range and aref.
|
||||
|
||||
Configuration options:
|
||||
|
||||
[0] - PCI bus number (optional)
|
||||
[1] - PCI slot number (optional)
|
||||
|
||||
If bus/slot is not specified, the first available PCI
|
||||
device will be used.
|
||||
If bus/slot is not specified, the first available PCI
|
||||
device will be used.
|
||||
|
||||
*/
|
||||
|
||||
/*
|
||||
CHANGELOG:
|
||||
|
||||
2005/02/17 Extend AI streaming capabilities. Now, scan_begin_arg can be
|
||||
a multiple of chanlist_len*convert_arg.
|
||||
2002/02/19 Fixed the two's complement conversion in pci9111_(hr_)ai_get_data.
|
||||
2002/02/18 Added external trigger support for analog input.
|
||||
2005/02/17 Extend AI streaming capabilities. Now, scan_begin_arg can be
|
||||
a multiple of chanlist_len*convert_arg.
|
||||
2002/02/19 Fixed the two's complement conversion in pci9111_(hr_)ai_get_data.
|
||||
2002/02/18 Added external trigger support for analog input.
|
||||
|
||||
TODO:
|
||||
|
||||
- Really test implemented functionality.
|
||||
- Add support for the PCI-9111DG with a probe routine to identify the card
|
||||
type (perhaps with the help of the channel number readback of the A/D Data
|
||||
register).
|
||||
- Add support for the PCI-9111DG with a probe routine to identify
|
||||
the card type (perhaps with the help of the channel number readback
|
||||
of the A/D Data register).
|
||||
- Add external multiplexer support.
|
||||
|
||||
*/
|
||||
@@ -193,8 +193,8 @@ TODO:
|
||||
outb(flags, PCI9111_IO_BASE+PCI9111_REGISTER_TRIGGER_MODE_CONTROL)
|
||||
|
||||
#define pci9111_interrupt_and_fifo_get() \
|
||||
((inb(PCI9111_IO_BASE+PCI9111_REGISTER_AD_MODE_INTERRUPT_READBACK) >> 4) \
|
||||
&0x03)
|
||||
((inb(PCI9111_IO_BASE+PCI9111_REGISTER_AD_MODE_INTERRUPT_READBACK) \
|
||||
>> 4) & 0x03)
|
||||
|
||||
#define pci9111_interrupt_and_fifo_set(flags) \
|
||||
outb(flags, PCI9111_IO_BASE+PCI9111_REGISTER_INTERRUPT_CONTROL)
|
||||
@@ -249,7 +249,7 @@ TODO:
|
||||
|
||||
#define pci9111_hr_ai_get_data() \
|
||||
((inw(PCI9111_IO_BASE+PCI9111_REGISTER_AD_FIFO_VALUE) \
|
||||
& PCI9111_HR_AI_RESOLUTION_MASK) \
|
||||
&PCI9111_HR_AI_RESOLUTION_MASK) \
|
||||
^ PCI9111_HR_AI_RESOLUTION_2_CMP_BIT)
|
||||
|
||||
#define pci9111_ao_set_data(data) \
|
||||
@@ -267,15 +267,18 @@ TODO:
|
||||
|
||||
#define pci9111_8254_counter_0_set(data) \
|
||||
outb(data & 0xFF, PCI9111_IO_BASE+PCI9111_REGISTER_8254_COUNTER_0); \
|
||||
outb((data >> 8) & 0xFF, PCI9111_IO_BASE+PCI9111_REGISTER_8254_COUNTER_0)
|
||||
outb((data >> 8) & 0xFF, \
|
||||
PCI9111_IO_BASE+PCI9111_REGISTER_8254_COUNTER_0)
|
||||
|
||||
#define pci9111_8254_counter_1_set(data) \
|
||||
outb(data & 0xFF, PCI9111_IO_BASE+PCI9111_REGISTER_8254_COUNTER_1); \
|
||||
outb((data >> 8) & 0xFF, PCI9111_IO_BASE+PCI9111_REGISTER_8254_COUNTER_1)
|
||||
outb((data >> 8) & 0xFF, \
|
||||
PCI9111_IO_BASE+PCI9111_REGISTER_8254_COUNTER_1)
|
||||
|
||||
#define pci9111_8254_counter_2_set(data) \
|
||||
outb(data & 0xFF, PCI9111_IO_BASE+PCI9111_REGISTER_8254_COUNTER_2); \
|
||||
outb((data >> 8) & 0xFF, PCI9111_IO_BASE+PCI9111_REGISTER_8254_COUNTER_2)
|
||||
outb((data >> 8) & 0xFF, \
|
||||
PCI9111_IO_BASE+PCI9111_REGISTER_8254_COUNTER_2)
|
||||
|
||||
/* Function prototypes */
|
||||
|
||||
|
Reference in New Issue
Block a user