staging: comedi: APCI1710_Dig_io: remove forward declarations
None of the functions in this file are exported. Make all of them static and remove the unnecessary forward declarations. 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:
committed by
Greg Kroah-Hartman
parent
cdd78fed91
commit
7c642f4025
@@ -99,8 +99,10 @@ Activates and deactivates the digital output memory.
|
|||||||
+----------------------------------------------------------------------------+
|
+----------------------------------------------------------------------------+
|
||||||
*/
|
*/
|
||||||
|
|
||||||
int i_APCI1710_InsnConfigDigitalIO(struct comedi_device *dev, struct comedi_subdevice *s,
|
static int i_APCI1710_InsnConfigDigitalIO(struct comedi_device *dev,
|
||||||
struct comedi_insn *insn, unsigned int *data)
|
struct comedi_subdevice *s,
|
||||||
|
struct comedi_insn *insn,
|
||||||
|
unsigned int *data)
|
||||||
{
|
{
|
||||||
struct addi_private *devpriv = dev->private;
|
struct addi_private *devpriv = dev->private;
|
||||||
unsigned char b_ModulNbr, b_ChannelAMode, b_ChannelBMode;
|
unsigned char b_ModulNbr, b_ChannelAMode, b_ChannelBMode;
|
||||||
@@ -294,8 +296,10 @@ int i_APCI1710_InsnConfigDigitalIO(struct comedi_device *dev, struct comedi_subd
|
|||||||
* unsigned char_ b_ModulNbr, unsigned char_ b_InputChannel,
|
* unsigned char_ b_ModulNbr, unsigned char_ b_InputChannel,
|
||||||
* unsigned char *_ pb_ChannelStatus)
|
* unsigned char *_ pb_ChannelStatus)
|
||||||
*/
|
*/
|
||||||
int i_APCI1710_InsnReadDigitalIOChlValue(struct comedi_device *dev,
|
static int i_APCI1710_InsnReadDigitalIOChlValue(struct comedi_device *dev,
|
||||||
struct comedi_subdevice *s, struct comedi_insn *insn, unsigned int *data)
|
struct comedi_subdevice *s,
|
||||||
|
struct comedi_insn *insn,
|
||||||
|
unsigned int *data)
|
||||||
{
|
{
|
||||||
struct addi_private *devpriv = dev->private;
|
struct addi_private *devpriv = dev->private;
|
||||||
int i_ReturnValue = 0;
|
int i_ReturnValue = 0;
|
||||||
@@ -483,8 +487,10 @@ int i_APCI1710_InsnReadDigitalIOChlValue(struct comedi_device *dev,
|
|||||||
* _INT_ i_APCI1710_SetDigitalIOChlOn (unsigned char_ b_BoardHandle,
|
* _INT_ i_APCI1710_SetDigitalIOChlOn (unsigned char_ b_BoardHandle,
|
||||||
* unsigned char_ b_ModulNbr, unsigned char_ b_OutputChannel)
|
* unsigned char_ b_ModulNbr, unsigned char_ b_OutputChannel)
|
||||||
*/
|
*/
|
||||||
int i_APCI1710_InsnWriteDigitalIOChlOnOff(struct comedi_device *dev,
|
static int i_APCI1710_InsnWriteDigitalIOChlOnOff(struct comedi_device *dev,
|
||||||
struct comedi_subdevice *s, struct comedi_insn *insn, unsigned int *data)
|
struct comedi_subdevice *s,
|
||||||
|
struct comedi_insn *insn,
|
||||||
|
unsigned int *data)
|
||||||
{
|
{
|
||||||
struct addi_private *devpriv = dev->private;
|
struct addi_private *devpriv = dev->private;
|
||||||
int i_ReturnValue = 0;
|
int i_ReturnValue = 0;
|
||||||
@@ -734,8 +740,10 @@ int i_APCI1710_InsnWriteDigitalIOChlOnOff(struct comedi_device *dev,
|
|||||||
* b_BoardHandle, unsigned char_ b_ModulNbr, unsigned char_
|
* b_BoardHandle, unsigned char_ b_ModulNbr, unsigned char_
|
||||||
* b_PortValue)
|
* b_PortValue)
|
||||||
*/
|
*/
|
||||||
int i_APCI1710_InsnBitsDigitalIOPortOnOff(struct comedi_device *dev,
|
static int i_APCI1710_InsnBitsDigitalIOPortOnOff(struct comedi_device *dev,
|
||||||
struct comedi_subdevice *s, struct comedi_insn *insn, unsigned int *data)
|
struct comedi_subdevice *s,
|
||||||
|
struct comedi_insn *insn,
|
||||||
|
unsigned int *data)
|
||||||
{
|
{
|
||||||
struct addi_private *devpriv = dev->private;
|
struct addi_private *devpriv = dev->private;
|
||||||
int i_ReturnValue = 0;
|
int i_ReturnValue = 0;
|
||||||
|
@@ -23,24 +23,3 @@
|
|||||||
|
|
||||||
#define APCI1710_DIGIO_MEMORYONOFF 0x10
|
#define APCI1710_DIGIO_MEMORYONOFF 0x10
|
||||||
#define APCI1710_DIGIO_INIT 0x11
|
#define APCI1710_DIGIO_INIT 0x11
|
||||||
|
|
||||||
/*
|
|
||||||
* DIGITAL I/O INISIALISATION FUNCTION
|
|
||||||
*/
|
|
||||||
int i_APCI1710_InsnConfigDigitalIO(struct comedi_device *dev, struct comedi_subdevice *s,
|
|
||||||
struct comedi_insn *insn, unsigned int *data);
|
|
||||||
|
|
||||||
/*
|
|
||||||
* INPUT OUTPUT FUNCTIONS
|
|
||||||
*/
|
|
||||||
int i_APCI1710_InsnReadDigitalIOChlValue(struct comedi_device *dev,
|
|
||||||
struct comedi_subdevice *s,
|
|
||||||
struct comedi_insn *insn, unsigned int *data);
|
|
||||||
|
|
||||||
int i_APCI1710_InsnWriteDigitalIOChlOnOff(struct comedi_device *dev,
|
|
||||||
struct comedi_subdevice *s,
|
|
||||||
struct comedi_insn *insn, unsigned int *data);
|
|
||||||
|
|
||||||
int i_APCI1710_InsnBitsDigitalIOPortOnOff(struct comedi_device *dev,
|
|
||||||
struct comedi_subdevice *s,
|
|
||||||
struct comedi_insn *insn, unsigned int *data);
|
|
||||||
|
Reference in New Issue
Block a user