staging: comedi: hwdrv_apci035: 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
17d51852b4
commit
dcd7ef332a
@@ -109,8 +109,10 @@ static int i_Flag = 1;
|
|||||||
| |
|
| |
|
||||||
+----------------------------------------------------------------------------+
|
+----------------------------------------------------------------------------+
|
||||||
*/
|
*/
|
||||||
int i_APCI035_ConfigTimerWatchdog(struct comedi_device *dev, struct comedi_subdevice *s,
|
static int i_APCI035_ConfigTimerWatchdog(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 int ui_Status = 0;
|
unsigned int ui_Status = 0;
|
||||||
@@ -280,8 +282,10 @@ int i_APCI035_ConfigTimerWatchdog(struct comedi_device *dev, struct comedi_subde
|
|||||||
| |
|
| |
|
||||||
+----------------------------------------------------------------------------+
|
+----------------------------------------------------------------------------+
|
||||||
*/
|
*/
|
||||||
int i_APCI035_StartStopWriteTimerWatchdog(struct comedi_device *dev,
|
static int i_APCI035_StartStopWriteTimerWatchdog(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;
|
||||||
unsigned int ui_Command = 0;
|
unsigned int ui_Command = 0;
|
||||||
@@ -397,8 +401,10 @@ int i_APCI035_StartStopWriteTimerWatchdog(struct comedi_device *dev,
|
|||||||
| |
|
| |
|
||||||
+----------------------------------------------------------------------------+
|
+----------------------------------------------------------------------------+
|
||||||
*/
|
*/
|
||||||
int i_APCI035_ReadTimerWatchdog(struct comedi_device *dev, struct comedi_subdevice *s,
|
static int i_APCI035_ReadTimerWatchdog(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 int ui_Status = 0; /* Status register */
|
unsigned int ui_Status = 0; /* Status register */
|
||||||
@@ -459,8 +465,10 @@ int i_APCI035_ReadTimerWatchdog(struct comedi_device *dev, struct comedi_subdevi
|
|||||||
| |
|
| |
|
||||||
+----------------------------------------------------------------------------+
|
+----------------------------------------------------------------------------+
|
||||||
*/
|
*/
|
||||||
int i_APCI035_ConfigAnalogInput(struct comedi_device *dev, struct comedi_subdevice *s,
|
static int i_APCI035_ConfigAnalogInput(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;
|
||||||
|
|
||||||
@@ -498,8 +506,10 @@ int i_APCI035_ConfigAnalogInput(struct comedi_device *dev, struct comedi_subdevi
|
|||||||
| |
|
| |
|
||||||
+----------------------------------------------------------------------------+
|
+----------------------------------------------------------------------------+
|
||||||
*/
|
*/
|
||||||
int i_APCI035_ReadAnalogInput(struct comedi_device *dev, struct comedi_subdevice *s,
|
static int i_APCI035_ReadAnalogInput(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 int ui_CommandRegister = 0;
|
unsigned int ui_CommandRegister = 0;
|
||||||
@@ -535,7 +545,7 @@ int i_APCI035_ReadAnalogInput(struct comedi_device *dev, struct comedi_subdevice
|
|||||||
| |
|
| |
|
||||||
+----------------------------------------------------------------------------+
|
+----------------------------------------------------------------------------+
|
||||||
*/
|
*/
|
||||||
int i_APCI035_Reset(struct comedi_device *dev)
|
static int i_APCI035_Reset(struct comedi_device *dev)
|
||||||
{
|
{
|
||||||
struct addi_private *devpriv = dev->private;
|
struct addi_private *devpriv = dev->private;
|
||||||
int i_Count = 0;
|
int i_Count = 0;
|
||||||
|
@@ -81,28 +81,3 @@ static struct comedi_lrange range_apci035_ai = { 8, {
|
|||||||
/* ADDIDATA Enable Disable */
|
/* ADDIDATA Enable Disable */
|
||||||
#define ADDIDATA_ENABLE 1
|
#define ADDIDATA_ENABLE 1
|
||||||
#define ADDIDATA_DISABLE 0
|
#define ADDIDATA_DISABLE 0
|
||||||
|
|
||||||
/* Hardware Layer functions for Apci035 */
|
|
||||||
|
|
||||||
/* TIMER */
|
|
||||||
/* timer value is passed as u seconds */
|
|
||||||
int i_APCI035_ConfigTimerWatchdog(struct comedi_device *dev, struct comedi_subdevice *s,
|
|
||||||
struct comedi_insn *insn, unsigned int *data);
|
|
||||||
int i_APCI035_StartStopWriteTimerWatchdog(struct comedi_device *dev,
|
|
||||||
struct comedi_subdevice *s,
|
|
||||||
struct comedi_insn *insn, unsigned int *data);
|
|
||||||
int i_APCI035_ReadTimerWatchdog(struct comedi_device *dev, struct comedi_subdevice *s,
|
|
||||||
struct comedi_insn *insn, unsigned int *data);
|
|
||||||
|
|
||||||
/* Temperature Related Defines (Analog Input Subdevice) */
|
|
||||||
|
|
||||||
int i_APCI035_ConfigAnalogInput(struct comedi_device *dev, struct comedi_subdevice *s,
|
|
||||||
struct comedi_insn *insn, unsigned int *data);
|
|
||||||
int i_APCI035_ReadAnalogInput(struct comedi_device *dev, struct comedi_subdevice *s,
|
|
||||||
struct comedi_insn *insn, unsigned int *data);
|
|
||||||
|
|
||||||
/* Interrupt */
|
|
||||||
static void v_APCI035_Interrupt(int irq, void *d);
|
|
||||||
|
|
||||||
/* Reset functions */
|
|
||||||
int i_APCI035_Reset(struct comedi_device *dev);
|
|
||||||
|
Reference in New Issue
Block a user